mirror of
				https://github.com/dromara/RuoYi-Vue-Plus.git
				synced 2025-11-04 16:23:42 +08:00 
			
		
		
		
	update 优化 xss包装器 变量命名错误
This commit is contained in:
		@@ -33,12 +33,12 @@ public class XssHttpServletRequestWrapper extends HttpServletRequestWrapper {
 | 
			
		||||
        String[] values = super.getParameterValues(name);
 | 
			
		||||
        if (values != null) {
 | 
			
		||||
            int length = values.length;
 | 
			
		||||
            String[] escapseValues = new String[length];
 | 
			
		||||
            String[] escapesValues = new String[length];
 | 
			
		||||
            for (int i = 0; i < length; i++) {
 | 
			
		||||
                // 防xss攻击和过滤前后空格
 | 
			
		||||
                escapseValues[i] = HtmlUtil.cleanHtmlTag(values[i]).trim();
 | 
			
		||||
                escapesValues[i] = HtmlUtil.cleanHtmlTag(values[i]).trim();
 | 
			
		||||
            }
 | 
			
		||||
            return escapseValues;
 | 
			
		||||
            return escapesValues;
 | 
			
		||||
        }
 | 
			
		||||
        return super.getParameterValues(name);
 | 
			
		||||
    }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user