Bläddra i källkod

1.xss 过滤掉招聘管理功能的 put和post 方法

main
wangqiang 1 dag sedan
förälder
incheckning
a189ed9a6e
1 ändrade filer med 3 tillägg och 0 borttagningar
  1. 3
    0
      ruoyi-common/src/main/java/com/ruoyi/common/filter/XssFilter.java

+ 3
- 0
ruoyi-common/src/main/java/com/ruoyi/common/filter/XssFilter.java Visa fil

@@ -52,6 +52,9 @@ public class XssFilter implements Filter {
if (method == null || HttpMethod.GET.matches(method) || HttpMethod.DELETE.matches(method)) {
return true;
}
if ("/system/workInfo".equals(url)&&(HttpMethod.PUT.matches(method) || HttpMethod.POST.matches(method))) {
return true;
}
return StringUtils.matches(url, excludes);
}


Laddar…
Avbryt
Spara