From edbde96487afbb300e08d5863cdc57631dc8c137 Mon Sep 17 00:00:00 2001 From: 沉浸独 <953969331@qq.com> Date: 星期五, 26 八月 2022 14:46:08 +0800 Subject: [PATCH] sa-token-jwt中hutool是5.7.14,会影响到项目中的5.8.5的使用;使用Ipv4Util时,用的是5.7.14 --- ruoyi-common/src/main/java/com/ruoyi/common/filter/XssFilter.java | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/filter/XssFilter.java b/ruoyi-common/src/main/java/com/ruoyi/common/filter/XssFilter.java index fe84879..5a08794 100644 --- a/ruoyi-common/src/main/java/com/ruoyi/common/filter/XssFilter.java +++ b/ruoyi-common/src/main/java/com/ruoyi/common/filter/XssFilter.java @@ -1,6 +1,5 @@ package com.ruoyi.common.filter; -import cn.hutool.extra.servlet.ServletUtil; import com.ruoyi.common.enums.HttpMethod; import com.ruoyi.common.utils.StringUtils; @@ -50,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); -- Gitblit v1.9.3