Procházet zdrojové kódy

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

main
wangqiang před 1 dnem
rodič
revize
a189ed9a6e

+ 3
- 0
ruoyi-common/src/main/java/com/ruoyi/common/filter/XssFilter.java Zobrazit soubor

@@ -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);
}


Načítá se…
Zrušit
Uložit