Re: DB: does it check magic_quotes_gpc and automatically accomodate either ON or OFF?
| From: | Justin Patrin | Date: | Thu, 01 Sep 2005 20:22:14 +0000 |
| Subject: | Re: DB: does it check magic_quotes_gpc and automatically accomodate either ON or OFF? | ||
| References: | 1 2 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-20735@lists.php.net to get a copy of this message | ||
On 9/1/05, l Burnerheimerton <lburnerheimerton@yahoo.com> wrote:
> --- Greg Beaver <cellog@php.net> wrote:
>
> > Justin Patrin wrote:
> >
> > > Why would DB deal with magic_quotes? DB is a
> > database package, not a
> > > form package. The only package (AFAIK) which
> > handles magic_quotes in
> > > PEAR is HTML_QuickForm and only if you use its
> > data exporting
> >
> > fyi, PEAR itself handles magic_quotes inside
> > PEAR_Registry, because it
> > uses fopen() and registries were being corrupted on
> > read because of it.
> >
> > Greg
> >
> > --
>
> So, you are saying that magic_quotes_gpc() is
> evaluated and strings are addslashes() or escaped as needed?
>
No, PEAR_Registry checks for and resets magic_quotes_runtime, another
broken mis-feature.
--
Justin Patrin