mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Fixed php7.4 deprecation notice for magic quotes
This commit is contained in:
parent
f2b8946407
commit
e3dd84caef
@ -167,9 +167,10 @@ if(!isset($_SERVER['HTTP_HOST'])) {
|
|||||||
*/
|
*/
|
||||||
} else {
|
} else {
|
||||||
/**
|
/**
|
||||||
* Fix magic quotes setting
|
* Check if magic quotes are enabled (only relevant for php 5.3)
|
||||||
|
* get_magic_quotes_gpc() call is suppressed to avoid php7.4 deprecation notice
|
||||||
*/
|
*/
|
||||||
if (function_exists('get_magic_quotes_gpc') && get_magic_quotes_gpc()) {
|
if (function_exists('get_magic_quotes_gpc') && @get_magic_quotes_gpc()) {
|
||||||
if($_REQUEST) stripslashes_recursively($_REQUEST);
|
if($_REQUEST) stripslashes_recursively($_REQUEST);
|
||||||
if($_GET) stripslashes_recursively($_GET);
|
if($_GET) stripslashes_recursively($_GET);
|
||||||
if($_POST) stripslashes_recursively($_POST);
|
if($_POST) stripslashes_recursively($_POST);
|
||||||
|
Loading…
Reference in New Issue
Block a user