疯狂的狮子li
2022-07-05 a0a09c23da11996139b785c94756b0ddcbfe3383
ruoyi-common/src/main/java/com/ruoyi/common/filter/XssFilter.java
@@ -49,7 +49,7 @@
        String url = request.getServletPath();
        String method = request.getMethod();
        // GET DELETE 不过滤
        if (method == null || method.matches(HttpMethod.GET.name()) || method.matches(HttpMethod.DELETE.name())) {
        if (method == null || HttpMethod.GET.matches(method) || HttpMethod.DELETE.matches(method)) {
            return true;
        }
        return StringUtils.matches(url, excludes);