visual v2.5

This commit is contained in:
thinkgem
2023-03-05 22:12:25 +08:00
parent 82e98f563f
commit c7b2512a72

View File

@@ -5,15 +5,10 @@
*/ */
package com.jeesite.common.codec; package com.jeesite.common.codec;
import java.io.UnsupportedEncodingException; import com.jeesite.common.collect.ListUtils;
import java.net.URLDecoder; import com.jeesite.common.lang.ExceptionUtils;
import java.net.URLEncoder; import com.jeesite.common.lang.StringUtils;
import java.util.List; import com.jeesite.common.web.http.ServletUtils;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import javax.servlet.http.HttpServletRequest;
import org.apache.commons.codec.DecoderException; import org.apache.commons.codec.DecoderException;
import org.apache.commons.codec.binary.Base64; import org.apache.commons.codec.binary.Base64;
import org.apache.commons.codec.binary.Hex; import org.apache.commons.codec.binary.Hex;
@@ -21,9 +16,13 @@ import org.apache.commons.text.StringEscapeUtils;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;
import com.jeesite.common.collect.ListUtils; import javax.servlet.http.HttpServletRequest;
import com.jeesite.common.lang.ExceptionUtils; import java.io.UnsupportedEncodingException;
import com.jeesite.common.lang.StringUtils; import java.net.URLDecoder;
import java.net.URLEncoder;
import java.util.List;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
/** /**
* 封装各种格式的编码解码工具类. * 封装各种格式的编码解码工具类.
@@ -238,7 +237,8 @@ public class EncodeUtils {
&& !StringUtils.contains(value, "id=\"FormHtml\"") // JFlow && !StringUtils.contains(value, "id=\"FormHtml\"") // JFlow
&& !(StringUtils.startsWith(value, "{") && StringUtils.endsWith(value, "}")) // JSON Object && !(StringUtils.startsWith(value, "{") && StringUtils.endsWith(value, "}")) // JSON Object
&& !(StringUtils.startsWith(value, "[") && StringUtils.endsWith(value, "]")) // JSON Array && !(StringUtils.startsWith(value, "[") && StringUtils.endsWith(value, "]")) // JSON Array
&& !(request != null && StringUtils.contains(request.getRequestURI(), "/ureport/")) // UReport && !(StringUtils.containsAny((request != null ? request : ServletUtils.getRequest())
.getRequestURI(), "/ureport/", "/visual/")) // UReport、Visual
){ ){
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
for (int i = 0; i < value.length(); i++) { for (int i = 0; i < value.length(); i++) {