mirror of
https://gitee.com/wkeyuan/DWSurvey.git
synced 2024-11-30 02:58:55 +08:00
mismatched tree node: EOF expecting
This commit is contained in:
parent
766a8cb5b0
commit
43ed8ad44b
@ -204,6 +204,12 @@ public class XssHttpWrapper extends HttpServletRequestWrapper {
|
||||
return result;
|
||||
}
|
||||
|
||||
/**
|
||||
* 处理插件之所以报 mismatched tree node: EOF expecting错误是因为其对注入的脚本格式有校验
|
||||
* 比如注入<scirpt>而没有匹配的结束标签</scirpt>时会报该错误,注入代码中开始标签和结束标签不匹配时会出该问题
|
||||
* @param value
|
||||
* @return
|
||||
*/
|
||||
private String stripXSS(String value)
|
||||
{
|
||||
if (value != null)
|
||||
|
Loading…
Reference in New Issue
Block a user