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

This commit is contained in:
YunaiV 2023-04-09 10:09:07 +08:00
parent 95aeee54e7
commit f106afc0f9

View File

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