The Short Version
No evidence shows that the French Third Republic legally forbade Islam. The historical record instead shows legal protection for religious exercise in principle, alongside heavy state control and unequal treatment of Muslims, especially in colonial territories. Those restrictions were real, but they were not the same as banning the religion.