xssFilter去掉UReport的单引号和双引号的替换
This commit is contained in:
@@ -232,6 +232,7 @@ 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
|
||||||
){
|
){
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
for (int i = 0; i < value.length(); i++) {
|
for (int i = 0; i < value.length(); i++) {
|
||||||
|
|||||||
Reference in New Issue
Block a user