Переглянути джерело

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

main
wangqiang 1 день тому
джерело
коміт
a189ed9a6e

+ 3
- 0
ruoyi-common/src/main/java/com/ruoyi/common/filter/XssFilter.java Переглянути файл

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


Завантаження…
Відмінити
Зберегти