update getm_magic_quotes function checks

This commit is contained in:
shreesh arora
2021-05-01 22:23:50 +05:30
parent 7129289cd5
commit ad352ae354
2 changed files with 2 additions and 2 deletions

View File

@@ -86,7 +86,7 @@ class AddConfToFile
public function checkString($string)
{
if (get_magic_quotes_gpc()) {
if (function_exists('get_magic_quotes_gpc') && get_magic_quotes_gpc()) {
$string = stripslashes($string);
}
if (!is_numeric($string)) {