Re: magic_quotes_sybase and php_stripslashes
| From: | Jan Schneider | Date: | Mon, 31 Mar 2003 14:21:44 +0000 |
| Subject: | Re: magic_quotes_sybase and php_stripslashes | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-543@lists.php.net to get a copy of this message | ||
Quoting Jani Taskinen <sniper@iki.fi>:
> Heh..so magic_quotes_sybase ini setting affects how stripslashes()
> function works too? Pretty high WTF factor there. It should be
> an additional option for php_stripslashes() that is passed where
> appropriate.
As long as it affects addslashes() it should also affect stripslashes(). The
WTF factor would be even higher else.
> On Mon, 31 Mar 2003, Sander Roobol wrote:
>
> >On Mon, Mar 31, 2003 at 03:45:13PM +0200, moshe doron wrote:
> >> could some1 explain the first if here (php_stripslashes:cybase mode)
> >>
> >>http://lxr.php.net/source/php4/ext/standard/string.c#2324
> >> that have nothing with slashes but with quotes?
> >
> >Sybase escapes ' with '' and NUL with \0 so we needed a special
> >version of php_stripslashes().
> >
> >Sander
> >
> >>
> >> could this if be removed safely?
Jan.
--
http://www.horde.org - The Horde Project
http://www.ammma.de - discover your knowledge
http://www.tip4all.de - Deine private Tippgemeinschaft