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
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: walton at nordicdms dot com
New email:
PHP Version: OS:

 

 [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 13:01:31 2024 UTC