Re: Malicious SQL

From: Date: Wed, 07 Jul 2004 17:36:51 +0000
Subject: Re: Malicious SQL
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-189885@lists.php.net to get a copy of this message
It may escape a quote, but injections would still be possible in other ways. It gets passed in as \' but then used normally as ' when it's the the variable. -Josh On Wed, 7 Jul 2004 10:31:17 -0700, Brian Dunning <brian@briandunning.com> wrote: > I have a question about this. Here is from the documentation: > > The PHP directive magic_quotes_gpc is on by default, and it > essentially runs addslashes() on all GET, POST, and COOKIE data. > > Why doesn't this automatically prevent injections, since it escapes out > any single quotes they try to submit? > > - Brian > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- -Josh

« previous php.general (#189885) next »