Slashes, slashes, everywhere

Found a bug? Tell us!!
Post Reply
witness

Slashes, slashes, everywhere

Post by witness »

Hi,

not sure if this is a bug, or simply a missing feature interacting with the server settings:

I get loads of escaped quotes and apostrophes on my page (i.e. \' instead of ') and they seem to become more each time I edit an article.

I suppose I'll have to insert some calls to stripcslashes() in a couple of places, but I have no idea where I would do that. In markup_text() in serendipity_functions.php? Anywhere else?

Any hints for a short-term fix I can apply right now would be appreciated. In addition, it'd be nice if this could be added as a preference, since I know there are a couple of PHP setups that insist on escaping these characters.

Cheers,
-- M. Uli Kusterer[/b]
Chad
Regular
Posts: 6
Joined: Tue Nov 18, 2003 12:03 pm
Location: Bellevue, Nebraska USA
Contact:

set_magic_quotes_runtime(0) and set_magic_quotes_gpc(0)

Post by Chad »

Try the set_magic_quotes_runtime(0) function of PHP. Just slap it at the top of your PHP script.

http://www.php.net/manual/en/function.s ... untime.php
witness
Posts: 2
Joined: Sat Nov 29, 2003 9:08 pm
Location: Heidelberg, Germany
Contact:

Re: Slashes, slashes, everywhere

Post by witness »

Hi,

thanks, set_magic_quotes_runtime( 0 ); at the top of my serendipity_functions.inc.php did the trick. I hope that's the recommended place to fix this... at least I think it's included everywhere.

Cheers,
-- Uli
Post Reply