php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #54365 addslashes says that magic_quotes_gpc is on but it's not the case
Submitted: 2011-03-24 08:24 UTC Modified: 2011-03-24 08:40 UTC
From: shein@php.net Assigned:
Status: Wont fix Package: Documentation problem
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: shein@php.net
New email:
PHP Version: OS:

 

 [2011-03-24 08:24 UTC] shein@php.net
Description:
------------
---
From manual page: http://www.php.net/function.addslashes#Description
---
Fix the following paragraph because magic_quotes_gpc is off now by default:

The PHP directive magic_quotes_gpc is on by default, and it essentially runs 
addslashes() on all GET, POST, and COOKIE data. Do not use addslashes() on 
strings that have already been escaped with magic_quotes_gpc as you'll then do 
double escaping. The function get_magic_quotes_gpc() may come in handy for 
checking this.



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-03-24 08:36 UTC] aharvey@php.net
-Status: Open +Status: Wont fix
 [2011-03-24 08:36 UTC] aharvey@php.net
Depressingly, it's still on by default. (Check main/main.c in trunk if you don't believe me.)
 [2011-03-24 08:40 UTC] shein@php.net
Oops, sorry.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 23:01:26 2024 UTC