Skip to content

Commit f29e200

Browse files
committed
Revert "Do not call get_magic_quote_gpc() when running in PHP version >= 5.4."
This reverts commit 3ec9c23. The minimum requirement for PLA is 7.0
1 parent e5aa9eb commit f29e200

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lib/common.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -297,9 +297,7 @@ function stopwatch() {
297297
* Strip slashes from GET, POST, and COOKIE variables if this
298298
* PHP install is configured to automatically addslashes()
299299
*/
300-
if (@version_compare(phpversion(), '5.4.0', '<') &&
301-
@get_magic_quotes_gpc() &&
302-
(!isset($slashes_stripped) || !$slashes_stripped)) {
300+
if (@get_magic_quotes_gpc() && (! isset($slashes_stripped) || ! $slashes_stripped)) {
303301
array_stripslashes($_REQUEST);
304302
array_stripslashes($_GET);
305303
array_stripslashes($_POST);

0 commit comments

Comments
 (0)