!451 xss请求Wrapper getAttribute方法 问题修复

Merge pull request !451 from zhangxingjia/master
This commit is contained in:
芋道源码 2023-04-09 02:04:43 +00:00 committed by Gitee
commit fe6593466f
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 1 additions and 1 deletions

View File

@ -64,7 +64,7 @@ public class XssRequestWrapper extends HttpServletRequestWrapper {
public Object getAttribute(String name) { public Object getAttribute(String name) {
Object value = super.getAttribute(name); Object value = super.getAttribute(name);
if (value instanceof String) { if (value instanceof String) {
xssCleaner.clean((String) value); return xssCleaner.clean((String) value);
} }
return value; return value;
} }