php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #41001 magic_qoutes_gpc off, but still adding slashes
Submitted: 2007-04-05 08:38 UTC Modified: 2007-04-05 08:52 UTC
From: marc at bhosted dot nl Assigned:
Status: Not a bug Package: PHP options/info functions
PHP Version: 5.2.1 OS: Linux version 2.4.21
Private report: No CVE-ID: None
 [2007-04-05 08:38 UTC] marc at bhosted dot nl
Description:
------------
Using:
htscanner 0.8.1
PHP 5.2.1 as CGI (suphp).

Setting magic_quotes_gpc to off using .htaccess. phpinfo reports  magic_quotes_gpc local is off, master is still on. Testing this with a $_GET results in the slash still added


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-04-05 08:45 UTC] marc at bhosted dot nl
A little more information:

URL example: http://localhost/phpinfo.php?test=test'test

.htaccess:
<IfModule mod_php.c>
        php_flag magic_quotes_gpc off
</IfModule>

phpinfo.php Source:
<?php

print $_GET['test'];

phpinfo();

?>

Result:
test\'test

<phpinfo reports local magic_quotes_gpc is off, master magic_quotes_gpc is on>
 [2007-04-05 08:52 UTC] tony2001@php.net
htscanner issues should be reported using PECL bug tracker.
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Sun May 24 18:00:01 2026 UTC