- Remove function 'get_magic_quotes_gpc'.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user