Page 1 of 1

Slashes, slashes, everywhere

Posted: Sat Nov 29, 2003 8:56 pm
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]

set_magic_quotes_runtime(0) and set_magic_quotes_gpc(0)

Posted: Tue Dec 02, 2003 6:37 am
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

Re: Slashes, slashes, everywhere

Posted: Fri Dec 05, 2003 5:52 pm
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