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
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: 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: Sat Dec 21 14:01:32 2024 UTC