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
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
37 + 28 = ?
Subscribe to this entry?

 
 [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

Add a Patch

Pull Requests

Add a Pull Request

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: Fri Mar 29 06:01:29 2024 UTC