php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #516 Set of characters to escape in addslashes is fixed
Submitted: 1998-07-07 10:01 UTC Modified: 1999-09-04 21:25 UTC
From: kk at shonline dot de Assigned:
Status: Closed Package: Feature/Change Request
PHP Version: 3.0 Final Release OS: Solaris 2.5.1
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: kk at shonline dot de
New email:
PHP Version: OS:

 

 [1998-07-07 10:01 UTC] kk at shonline dot de
While stripslashes() handles ALL backslashed characters, addslashes() adds slashes only to a fixed set of characters. This is an ok default for addslashes($string), but it should be possible to call addslashes() with two parameters, the second being an optional list of characters to backslash in $string.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1999-09-04 21:24 UTC] riffraff at cvs dot php dot net
added second argument in current php4 CVS release.
 [1999-09-04 21:25 UTC] riffraff at cvs dot php dot net
sorry, forgot to close.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Dec 22 00:01:30 2024 UTC