php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #15824 magic_quotes_sybase and addslashes/stripslashes
Submitted: 2002-03-01 17:56 UTC Modified: 2002-06-18 13:52 UTC
From: jlp at ccil dot org Assigned:
Status: Closed Package: Strings related
PHP Version: 4.1.2 OS: linux
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: jlp at ccil dot org
New email:
PHP Version: OS:

 

 [2002-03-01 17:56 UTC] jlp at ccil dot org
with magic_quotes_sybase enabled, addslashes will replace single quotes with double single quotes and NUL's 
with \NUL's.  stripslashes will change the doubled single quotes back to single quotes, but the 
backslash-escaped NUL's will remain escaped.

see http://marc.theaimsgroup.com/?l=php-dev&m=100257404931832&w=2


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-06-06 06:09 UTC] sander@php.net
I think this is fixed in CVS. If that's not the case, reopen this report.
 [2002-06-07 18:30 UTC] jlp at ccil dot org
nope.  code has changed slightly, but logic is still the same.
 [2002-06-18 07:53 UTC] sander@php.net
This bug has been fixed in CVS. You can grab a snapshot of the
CVS version at http://snaps.php.net/. In case this was a documentation 
problem, the fix will show up soon at http://www.php.net/manual/.
In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites.
Thank you for the report, and for helping us make PHP better.


 [2002-06-18 13:52 UTC] jlp at ccil dot org
I'm not convinced that the fix should be on the strip side instead of the add side, but it's a definite goodness to have the functions be inverses of each other.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Dec 22 06:01:30 2024 UTC