mirror of
https://gitee.com/huangge1199_admin/vue-pro.git
synced 2024-11-23 07:41:53 +08:00
fix xss请求Wrapper getAttribute方法 问题修复
This commit is contained in:
parent
b024c716ed
commit
bc6eaea2b4
@ -64,7 +64,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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user