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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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 18:01:29 2024 UTC