corkg Posted August 7, 2007 Share Posted August 7, 2007 When my forum saves text to the Database for some reason it adds ' into the database when there is a / so instead of / you get '/ Why? Link to comment https://forums.phpfreaks.com/topic/63774-saving-text-with-mysql-and-problems/ Share on other sites More sharing options...
Fadion Posted August 8, 2007 Share Posted August 8, 2007 Normaly it should add a '/' when u have a ' (single quote) and thats because u have magic_quotes_gpc on or u are just using addslashes to GET, POST variables. That breakes the possibility of injections. The advise is to turn off magic_quotes_gpc and escape the data manually. Link to comment https://forums.phpfreaks.com/topic/63774-saving-text-with-mysql-and-problems/#findComment-318034 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.