Re: 8.1.4: Who says "PHP deprecated addslashes since 4.0"?

From: ljb <ljb220(at)mindspring(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: 8.1.4: Who says "PHP deprecated addslashes since 4.0"?
Date: 2006-05-26 01:50:28
Message-ID: e55mt4$d4s$1@news.hub.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

tgl(at)sss(dot)pgh(dot)pa(dot)us wrote:
> ljb <ljb220(at)mindspring(dot)com> writes:
>> | addslashes() or magic_quotes. We note that these tools have been deprecated
>> | by the PHP group since version 4.0.
>
>> Can anyone provide a source for the statement?
>
> I'm not going to put words in Josh's mouth about where he got that from,
> but anyone who reads all of the comments at
> http://us3.php.net/manual/en/function.addslashes.php
> ought to come away suitably unimpressed with the security of that
> function.

Yes, sorry, I did see those comments, although I don't think they are from
the PHP group themselves. But I missed the statement on the pg_escape_string
manual page saying "use of this function is recommended instead of
addslashes()". I still think "since version 4.0" is wrong.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Robert Treat 2006-05-26 02:03:01 Re: reindexdb program error under PG 8.1.3
Previous Message carlos.reimer 2006-05-26 01:06:15 LDAP authentication