Page 1 of 1

\" stored as and displays as \\"

Posted: Sat Mar 17, 2007 12:28 am
by Garrett Albright
Check out this entry here:
http://raygunrobot.com/archives/ThisSer ... enu-useful

Find the italicized paragraph that begins with "Note: There should only be one backslash…"

For whatever reason, other backslashes are appearing correctly, but backslashes before double quotes seem to be double-escaped or something. I'm looking in the database, and it's being stored that way there as well.

If it makes a difference, I'm using SQLite as my database backend.

If anyone knows of a work-around I can use, please let me know. I suppose I could just edit the entry in the database directly, but I'm not quite desperate enough to be that brave yet.

Re: \" stored as and displays as \\"

Posted: Mon Mar 19, 2007 9:55 am
by garvinhicking
Hi!

This double-escpaing might be caused by your server, if magic_quotes_gpc or Database-magic_quotes are enabled. Do you have access to your php.ini?

Or you could try to put this into your .htaccess:

Code: Select all

php_value magic_quotes_gpc off
php_value magic_quotes_runtime Off
?

Regards,
Garvin

Posted: Mon Mar 19, 2007 11:13 pm
by Garrett Albright
No, that didn't work; probably because I believe my host is using PHP via FastCGI instead of as an Apache module. But perhaps later today I'll try poking around in the source code and see if I can turn it off there.