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

Add a Patch

Pull Requests

Add a Pull Request

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: Wed Apr 24 03:01:29 2024 UTC