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
 [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 15:01:29 2024 UTC