修正定时任务日志权限字符

master
RuoYi 5 years ago
parent 48ba7d5ed6
commit a195df175f
  1. 2
      ruoyi-ui/src/views/monitor/job/log.vue
  2. 3
      ruoyi/src/main/java/com/ruoyi/common/utils/ip/IpUtils.java

@ -87,7 +87,7 @@
icon="el-icon-download"
size="mini"
@click="handleExport"
v-hasPermi="['monitor:jobLog:export']"
v-hasPermi="['monitor:job:export']"
>导出</el-button>
</el-col>
</el-row>

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

Loading…
Cancel
Save