From f29e200b9601d84ef0769778cc6c09332c7b228e Mon Sep 17 00:00:00 2001 From: Deon George Date: Sun, 2 Apr 2023 09:08:53 +1000 Subject: [PATCH] Revert "Do not call get_magic_quote_gpc() when running in PHP version >= 5.4." This reverts commit 3ec9c23d585826aa29f5f25ac43ca077f5fe5377. The minimum requirement for PLA is 7.0 --- lib/common.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/common.php b/lib/common.php index 6f15619..1925ab1 100644 --- a/lib/common.php +++ b/lib/common.php @@ -297,9 +297,7 @@ if ($app['language'] == 'auto') { * Strip slashes from GET, POST, and COOKIE variables if this * PHP install is configured to automatically addslashes() */ -if (@version_compare(phpversion(), '5.4.0', '<') && - @get_magic_quotes_gpc() && - (!isset($slashes_stripped) || !$slashes_stripped)) { +if (@get_magic_quotes_gpc() && (! isset($slashes_stripped) || ! $slashes_stripped)) { array_stripslashes($_REQUEST); array_stripslashes($_GET); array_stripslashes($_POST);