- Remove function 'get_magic_quotes_gpc'.

This commit is contained in:
zhujinyong
2021-03-23 08:56:15 +08:00
parent 6bc4afa8dc
commit 3146fb6b3e
2 changed files with 1 additions and 3 deletions
+1 -1
View File
@@ -263,7 +263,7 @@ class baseHelper
*/
static public function jsonEncode($data)
{
return (function_exists('get_magic_quotes_gpc') and get_magic_quotes_gpc()) ? addslashes(json_encode($data)) : json_encode($data);
return json_encode($data);
}
/**
-2
View File
@@ -1029,8 +1029,6 @@ class baseFixer
$fields = $this->processFields($fieldName);
foreach($fields as $fieldName)
{
if(function_exists('get_magic_quotes_gpc') and get_magic_quotes_gpc()) $this->data->$fieldName = stripslashes($this->data->$fieldName);
if(!isset($this->stripedFields[$fieldName]) and (!defined('RUN_MODE') or RUN_MODE != 'admin'))
{
$this->data->$fieldName = self::stripDataTags($this->data->$fieldName, $allowedTags, $attributes);