Jump to content

\ is added after all my " marks


Bman900

Recommended Posts

So I ran into the most bizarre problem ever on my live server. For some odd reason something, somewhere is adding an extra character after every " mark I have. Now I am using zend framework but this can not be an issue involving them since everything works perfectly on my localhost. I am using 1and1 to host my application but for the love of me I can not narrow this down any more.

 

Ex of my problem, I type this into my text box: "This is a sentence" and it proceeds to saving this: \"This is a sentence\" 

 

Something is happening right after I submit my form because if I add the code directly in my database, it displays everything fine. Has any one ever ran into this problem before?

Link to comment
https://forums.phpfreaks.com/topic/250177-is-added-after-all-my-marks/
Share on other sites

magic_quotes_gpc is probably set to On in your php.ini file. It really shouldn't be. If you can change it, change it (there might even be an article in their FAQs about it). If not, you'll need to check for it and use stripslashes to compensate for it.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.