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? Quote 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. Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.