note 99464 added to function.get-magic-quotes-gpc

From: Date: Wed, 18 Aug 2010 21:11:52 +0000
Subject: note 99464 added to function.get-magic-quotes-gpc
Groups: php.notes 
Request: Send a blank email to php-notes+get-171824@lists.php.net to get a copy of this message
There is a small issue with the code I submitted previously, the fixed version is now shipped with the phunction PHP Framework (http://phunction.sf.net/) and goes as follows: <?php if ((get_magic_quotes_gpc() === 1) && (version_compare(PHP_VERSION, '5.3.0', '>=') === true)) { $_GET = json_decode(stripslashes(json_encode($_GET, JSON_HEX_APOS | JSON_HEX_QUOT)), true); $_POST = json_decode(stripslashes(json_encode($_POST, JSON_HEX_APOS | JSON_HEX_QUOT)), true); $_COOKIE = json_decode(stripslashes(json_encode($_COOKIE, JSON_HEX_APOS | JSON_HEX_QUOT)), true); $_REQUEST = json_decode(stripslashes(json_encode($_REQUEST, JSON_HEX_APOS | JSON_HEX_QUOT)), true); } ?> ---- Server IP: 194.8.30.16 Probable Submitter: 95.136.98.19 ---- Manual Page -- http://www.php.net/manual/en/function.get-magic-quotes-gpc.php Edit -- https://master.php.net/note/edit/99464 Del: integrated -- https://master.php.net/note/delete/99464/integrated Del: useless -- https://master.php.net/note/delete/99464/useless Del: bad code -- https://master.php.net/note/delete/99464/bad+code Del: spam -- https://master.php.net/note/delete/99464/spam Del: non-english -- https://master.php.net/note/delete/99464/non-english Del: in docs -- https://master.php.net/note/delete/99464/in+docs Del: other reasons-- https://master.php.net/note/delete/99464 Reject -- https://master.php.net/note/reject/99464 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#171824) next »