PDA

View Full Version : When some one types a ' it turns into a \'


rymonday
09-09-2015, 06:50 PM
Hi there,
Hoping for some help on this one! I have an issue were when someone puts a word like don't it turns into don\'t when posting.

Looking at the data base the collation is: latin1_swedish_ci and the charset is set to: ISO-8859-1 in VB.

Also I am using a comment connector through wordpress and it posts to forum fine without editing the words like done from the wyswig text box in vbulletin.

Was hoping someone might have some insight on this?

Thanks!

Dave
09-09-2015, 07:11 PM
Magic quotes are probably turned on in PHP: http://php.net/manual/en/security.magicquotes.disabling.php

rymonday
09-09-2015, 07:29 PM
Magic quotes are probably turned on in PHP: http://php.net/manual/en/security.magicquotes.disabling.php

Thanks for the quick Reply!

I did try code above and restarted apache... still no dice!

It is weird as I have another vBulletin site on this server and it seems to be fine.

--------------- Added 1441836804 at 1441836804 ---------------

Also I am using PHP 5.6.7-1

which according to http://php.net/manual/en/info.configuration.php#ini.magic-quotes-gpc it has been removed

--------------- Added 1441837638 at 1441837638 ---------------

Update:
Did some testing... It seems to be some issue with wordpress mucking up the mix. So not a vb issue or DB issue it looks like Dave was right and wordpress is manually trying to get/post with its own Magic Quotes.