疯狂的狮子li
2022-09-02 0e39f6fa2d67de9d956f3e043f68b7bd7a030db2
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);