#30527 [Fbk->NoF]: magic_quotes_gpc does not work per-directory
| From: | php-bugs at lists dot php dot net | Date: | Thu, 02 Dec 2004 00:00:05 +0000 |
| Subject: | #30527 [Fbk->NoF]: magic_quotes_gpc does not work per-directory | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-69703@lists.php.net to get a copy of this message | ||
ID: 30527
Updated by: php-bugs@lists.php.net
Reported By: andrew at crannog-software dot com
-Status: Feedback
+Status: No Feedback
Bug Type: PHP options/info functions
Operating System: Windows 2000
PHP Version: 4.3.9
New Comment:
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
Previous Comments:
------------------------------------------------------------------------
[2004-11-29 19:23:07] hans at velum dot net
For me the issue appears when using PHP as ISAPI module w/ IIS.
------------------------------------------------------------------------
[2004-11-24 16:23:12] sniper@php.net
See also bug #30813
------------------------------------------------------------------------
[2004-11-24 00:47:53] sniper@php.net
Using PHP as CGI binary or ISAPI module?
------------------------------------------------------------------------
[2004-11-21 18:42:39] hans at velum dot net
I can confirm this on Windows 2003 w/ IIS 6 also. Note that the
magic_quotes_sybase INI setting is also being ignored. Basically it's
always doing magic_quotes_gpc -- despite the phpinfo() / ini_get
showing the desired per-directory values.
------------------------------------------------------------------------
[2004-10-22 11:43:25] andrew at crannog-software dot com
Description:
------------
When magic_quotes_gpc is controlled per-directory through the registry,
the return code from get_magic_quotes_gpc() reflects the change, but the
contents of $_GET, $_POST and $_COOKIE remain escaped or not escaped
according to the setting in php.ini.
The code below was run with magic_quotes_gpc=on in php.ini and
magic_quotes_gpc="0" in the registry for the folder in which the script
resides.
Reproduce code:
---------------
<html>
<body>
magic_quotes_gpc is <?php echo get_magic_quotes_gpc() ? "on" : "off";
?><br />
text: <?php echo $_REQUEST['text']; ?><br />
<form action="test.php">
<input name="text" /> <input type="submit" />
</form>
</body>
</html>
Expected result:
----------------
magic_quotes_gpc is off
text: "test"
Actual result:
--------------
magic_quotes_gpc is off
text: \"test\"
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=30527&edit=1