json 响应带有特殊字符
示例的部分答案
{
"command":"insert","method":"append",
"selector":"body","data":"\u003Cscript
src=\u0022\/core\/modules\/editor\/js\/editor.dialog.js?
v=8.5.1\u0022\u003E\u003C\/script\u003E\n\u003Cscript
src=\u0022\/core\/misc\/dialog\/dialog.ajax.js?
v=8.5.1\u0022\u003E\u003C\/script\u003E\n","settings":null
},
由于过早退出,这发生在我身上。对我来说,这个输出发生在一个表单类文件中,但例如它可能在
index.php首先在顶部添加任何标签您的站点可以正常工作,但在 ajax 请求期间,响应将被筛选。它就像一个错字一样发生,但花了几个小时搜索,根本不在正确的地方
当然,对于解决方案,您需要检查是否存在这种过早的结论并将其删除。