[dev] mcrypt, magic_quotes_runtime

Jan Schneider jan@horde.org
Mon, 17 Dec 2001 09:13:03 +0100


Zitat von Chuck Hagenbuch <chuck@horde.org>:

> Quoting Jon Parise <jon@horde.org>:
> 
> > Right, a few years ago we required that setting to be (on|off)
> > (I forget which), but we went through the code afterward in an
> > effort to make things work either way (via dispelMagicQuotes).
> 
> Horde::getFormData() calls dispelMagicQuotes() automatically, btw.
> However, 
> Brent was asking about magic_quotes_runtime; magic_quotes_gpc is what we
> 
> account for now.
> 
> magic_quotes_runtime does something rather different and programatically
> 
> horrible. From the manual:
> 
> If magic_quotes_runtime is enabled, most functions that return data from
> any 
> sort of external source including databases and text files will have
> quotes 
> escaped with a backslash. If magic_quotes_sybase is also on, a
> single-quote is 
> escaped with a single-quote instead of a backslash. 

Does PEAR's DB:: take care of it?

Jan.

::::::::::::::::::::::::::::::::::::::::
AMMMa AG - discover your knowledge
:::::::::::::::::::::::::::
Detmolder Str. 25-33 :: D-33604 Bielefeld
fon +49.521.96878-0 :: fax  +49.521.96878-20
http://www.ammma.de
::::::::::::::::::::::::::::::::::::::::::::::