diff --git a/administrator/components/com_joomlaupdate/restore.php b/administrator/components/com_joomlaupdate/restore.php index 6ba00f9e0fa86..71ba17591fabf 100644 --- a/administrator/components/com_joomlaupdate/restore.php +++ b/administrator/components/com_joomlaupdate/restore.php @@ -123,7 +123,7 @@ function getQueryParam($key, $default = null) $value = $_REQUEST[$key]; } - if (get_magic_quotes_gpc() && !is_null($value)) + if (PHP_VERSION_ID < 50400 && get_magic_quotes_gpc() && !is_null($value)) { $value = stripslashes($value); } diff --git a/libraries/fof/input/input.php b/libraries/fof/input/input.php index cdd1e2e9db235..9aea0539a7a49 100644 --- a/libraries/fof/input/input.php +++ b/libraries/fof/input/input.php @@ -4,6 +4,7 @@ * @subpackage input * @copyright Copyright (C) 2010-2016 Nicholas K. Dionysopoulos / Akeeba Ltd. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt + * @note This file has been modified by the Joomla! Project and no longer reflects the original work of its author. */ // Protect from unauthorized access defined('FOF_INCLUDED') or die; @@ -99,7 +100,7 @@ public function __construct($source = null, array $options = array()) // Magic quotes GPC handling (something JInput simply can't handle at all) - if (($hash == 'REQUEST') && get_magic_quotes_gpc() && class_exists('JRequest', true)) + if (($hash == 'REQUEST') && PHP_VERSION_ID < 50400 && get_magic_quotes_gpc() && class_exists('JRequest', true)) { $source = JRequest::get('REQUEST', 2); } diff --git a/libraries/src/Application/AdministratorApplication.php b/libraries/src/Application/AdministratorApplication.php index 9d36f371d66ca..5bf3bbbb744b5 100644 --- a/libraries/src/Application/AdministratorApplication.php +++ b/libraries/src/Application/AdministratorApplication.php @@ -123,7 +123,7 @@ protected function doExecute() $this->initialiseApp($options); // Test for magic quotes - if (get_magic_quotes_gpc()) + if (PHP_VERSION_ID < 50400 && get_magic_quotes_gpc()) { $lang = $this->getLanguage();