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]
Slashes, slashes, everywhere
set_magic_quotes_runtime(0) and set_magic_quotes_gpc(0)
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
http://www.php.net/manual/en/function.s ... untime.php
Re: Slashes, slashes, everywhere
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
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