#46759 [Com]: magic_quotes_gpc doesn't work

From: Date: Sat, 06 Dec 2008 01:28:00 +0000
Subject: #46759 [Com]: magic_quotes_gpc doesn't work
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-131661@lists.php.net to get a copy of this message
ID: 46759 Comment by: brion at pobox dot com Reported By: vrana@php.net Status: Open Bug Type: Variables related Operating System: Windows PHP Version: 5.2.7 New Comment: This causes downstream MediaWiki bug: https://bugzilla.wikimedia.org/show_bug.cgi?id=16570 Data corruption and failure to properly submit edits when magic_quotes_gpc is enabled. (Workaround: disable magic_quotes_gpc so input doesn't get munged by stripslashes().) Presumably causes similar breakage in every other web app that attempts to correct for magic_quotes_gpc. Previous Comments: ------------------------------------------------------------------------ [2008-12-05 11:52:05] vrana@php.net Description: ------------ magic_quotes_gpc doesn't escape $_GET, $_POST, $_COOKIE and $_REQUEST variables. It worked with the same configuration under 5.2.6. I have magic_quotes_gpc set in php.ini. Reproduce code: --------------- URL: ?q=' <?php var_dump(PHP_VERSION); var_dump(get_magic_quotes_gpc()); var_dump($_GET["q"]); Expected result: ---------------- string(5) "5.2.7" int(1) string(2) "\'" Actual result: -------------- string(5) "5.2.7" int(1) string(2) "'" ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=46759&edit=1

« previous php.bugs (#131661) next »