php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #17001 enhancement for addslashes()
Submitted: 2002-05-04 02:26 UTC Modified: 2003-02-06 22:13 UTC
From: e at arix dot com Assigned:
Status: Not a bug Package: Feature/Change Request
PHP Version: 4.2.0 OS: Linux
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: e at arix dot com
New email:
PHP Version: OS:

 

 [2002-05-04 02:26 UTC] e at arix dot com
it would be VERY useful if the addslashes() function would take a second parameter to specify that only one particular kind of quote is to be escaped, instead of escaping both... sort of like htmlentities()'s quote_style.

- erick

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-02-06 22:13 UTC] iliaa@php.net
Use addcslashes() it allows you specify the list of characters that should be escaped.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sat Jul 26 14:00:03 2025 UTC