Skip to content

Commit

Permalink
Revert "Do not call get_magic_quote_gpc() when running in PHP version…
Browse files Browse the repository at this point in the history
… >= 5.4."

This reverts commit 3ec9c23.

The minimum requirement for PLA is 7.0
  • Loading branch information
leenooks committed Apr 2, 2023
1 parent e5aa9eb commit f29e200
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/common.php
Original file line number Diff line number Diff line change
Expand Up @@ -297,9 +297,7 @@ function stopwatch() {
* 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);
Expand Down

0 comments on commit f29e200

Please sign in to comment.