php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #52 addslashes/stripslashes inconsistant
Submitted: 1998-02-10 17:26 UTC Modified: 1998-02-10 18:32 UTC
From: walton at nordicdms dot com Assigned:
Status: Closed Package: Other
PHP Version: 3.0b4 OS: WinNT
Private report: No CVE-ID: None
 [1998-02-10 17:26 UTC] walton at nordicdms dot com
addslashes() inserts either ' or \ depending on the
setting of magic_quotes_sybase.

stripslashes() ignores magic_quotes_sybase, and only 
removes \.

As a result, ("a'b" == stripslashes(addslashes("a'b"))) 
succeeds when magic_quotes_sybase = 0, but fails 
when magic_quotes_sybase = 1.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1998-02-10 18:32 UTC] zeev
Fixed
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 14:01:32 2024 UTC