Skip to content

Commit d1dae60

Browse files
committed
get_magic_quotes_gpc() was deprecrated as of PHP 7.4
1 parent f29e200 commit d1dae60

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/common.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -297,7 +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 (@get_magic_quotes_gpc() && (! isset($slashes_stripped) || ! $slashes_stripped)) {
300+
if ((! isset($slashes_stripped) || ! $slashes_stripped)) {
301301
array_stripslashes($_REQUEST);
302302
array_stripslashes($_GET);
303303
array_stripslashes($_POST);

0 commit comments

Comments
 (0)