$. Ajax requests automatically add backslash escape characters to the php background
$. Ajax
PHP background return:
PHP code
Reply to discussion (solution)
Disable php settings magic quotes gpc
Or run stripslashes on the result
Disable php settings magic quotes gpc
Or run stripslashes on the result
Excuse me, the ajax requests written by my colleagues are exactly the same. why are there no escape characters.
Are you looking at Response through the browser plug-in?
Does direct web output also contain a backslash?
Because you have enabled the magic_quotes_gpc switch.
if (get_magic_quotes_gpc()) { foreach($_POST as &$v) $v = stripslashes($v);}
Are you looking at Response through the browser plug-in?
Does direct web output also contain a backslash?
Yes, there is no direct web output. However, response indicates that the backend receives a slash.
Because you have enabled the magic_quotes_gpc switch.
if (get_magic_quotes_gpc()) { foreach($_POST as &$v) $v = stripslashes($v);}
This is not the case when others pass the value ..
Is everyone's php environment the same?