\" stored as and displays as \\"

Found a bug? Tell us!!
Post Reply
Garrett Albright
Regular
Posts: 5
Joined: Sat Mar 10, 2007 3:41 am

\" stored as and displays as \\"

Post 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.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

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

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Garrett Albright
Regular
Posts: 5
Joined: Sat Mar 10, 2007 3:41 am

Post 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.
Post Reply