From a195df175f3031d682eccd1fc764ad2033d92b5f Mon Sep 17 00:00:00 2001 From: RuoYi Date: Thu, 18 Jun 2020 15:07:56 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E5=AE=9A=E6=97=B6=E4=BB=BB?= =?UTF-8?q?=E5=8A=A1=E6=97=A5=E5=BF=97=E6=9D=83=E9=99=90=E5=AD=97=E7=AC=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ruoyi-ui/src/views/monitor/job/log.vue | 2 +- ruoyi/src/main/java/com/ruoyi/common/utils/ip/IpUtils.java | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/ruoyi-ui/src/views/monitor/job/log.vue b/ruoyi-ui/src/views/monitor/job/log.vue index d9f79b51..4ead6340 100644 --- a/ruoyi-ui/src/views/monitor/job/log.vue +++ b/ruoyi-ui/src/views/monitor/job/log.vue @@ -87,7 +87,7 @@ icon="el-icon-download" size="mini" @click="handleExport" - v-hasPermi="['monitor:jobLog:export']" + v-hasPermi="['monitor:job:export']" >导出 diff --git a/ruoyi/src/main/java/com/ruoyi/common/utils/ip/IpUtils.java b/ruoyi/src/main/java/com/ruoyi/common/utils/ip/IpUtils.java index 617c8cc7..b9f13735 100644 --- a/ruoyi/src/main/java/com/ruoyi/common/utils/ip/IpUtils.java +++ b/ruoyi/src/main/java/com/ruoyi/common/utils/ip/IpUtils.java @@ -41,8 +41,7 @@ public class IpUtils { ip = request.getRemoteAddr(); } - ip = EscapeUtil.clean(ip);// 清除Xss特殊字符 - return "0:0:0:0:0:0:0:1".equals(ip) ? "127.0.0.1" : ip; + return "0:0:0:0:0:0:0:1".equals(ip) ? "127.0.0.1" : EscapeUtil.clean(ip); } public static boolean internalIp(String ip)