From: <var...@us...> - 2014-10-14 12:14:27
|
Revision: 9258 http://sourceforge.net/p/phpwiki/code/9258 Author: vargenau Date: 2014-10-14 12:14:19 +0000 (Tue, 14 Oct 2014) Log Message: ----------- Remove get_magic_quotes_gpc Modified Paths: -------------- trunk/lib/Request.php Modified: trunk/lib/Request.php =================================================================== --- trunk/lib/Request.php 2014-10-14 10:28:21 UTC (rev 9257) +++ trunk/lib/Request.php 2014-10-14 12:14:19 UTC (rev 9258) @@ -26,7 +26,6 @@ function __construct() { - $this->_fix_magic_quotes_gpc(); $this->_fix_multipart_form_data(); switch ($this->get('REQUEST_METHOD')) { @@ -540,21 +539,6 @@ return Request_UploadedFile::getUploadedFile($key); } - function _fix_magic_quotes_gpc() - { - $needs_fix = array('HTTP_POST_VARS', - 'HTTP_GET_VARS', - 'HTTP_COOKIE_VARS', - 'HTTP_SERVER_VARS', - 'HTTP_POST_FILES'); - - // Fix magic quotes. - if (get_magic_quotes_gpc()) { - foreach ($needs_fix as $vars) - $this->_stripslashes($GLOBALS[$vars]); - } - } - function _stripslashes(&$var) { if (is_array($var)) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |