php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #23346 stripslashes extention
Submitted: 2003-04-25 10:38 UTC Modified: 2012-09-22 09:54 UTC
From: php at dries dot net Assigned:
Status: Wont fix Package: *General Issues
PHP Version: 4.3.0 OS: all
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 this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: php at dries dot net
New email:
PHP Version: OS:

 

 [2003-04-25 10:38 UTC] php at dries dot net
I think it would be usefull to extend the stripslashes function so it would check for magic_quotes on or of. So, for example:

stripslashes($string) would always strip slashes

while

stripslashes($string, 1) would only strip slashes when magic_quotes is on

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-09-22 09:54 UTC] nikic@php.net
-Status: Open +Status: Wont fix -Package: Feature/Change Request +Package: *General Issues
 [2012-09-22 09:54 UTC] nikic@php.net
Closing as magic quotes were dropped in PHP 5.4.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 03:01:27 2024 UTC