Bladeren bron

【云码】【反馈编号:2024080041】【通用功能】【网络安全】【SQL注入问题修复】【因编译问题不能发布代码暂时回退】

wuyx 1 week geleden
bovenliggende
commit
67c47b0b81
2 gewijzigde bestanden met toevoegingen van 4 en 300 verwijderingen
  1. 0 296
      WebContent/resource/ext/ext-all.js
  2. 4 4
      src/com/uas/erp/core/interceptor/DbSourceInterceptor.java

File diff suppressed because it is too large
+ 0 - 296
WebContent/resource/ext/ext-all.js


+ 4 - 4
src/com/uas/erp/core/interceptor/DbSourceInterceptor.java

@@ -64,11 +64,11 @@ public class DbSourceInterceptor extends HandlerInterceptorAdapter {
 		String master = req.getParameter("master");
 		String condition =req.getParameter("condition");
 		if(StringUtil.hasText(condition)) {
-			condition = decryptData(condition);
+			if(req.getRequestURI().endsWith(".xls")) {
+				condition = new String(condition.getBytes("ISO-8859-1"), "UTF-8");
+			}
+//			condition = decryptData(condition);
 			req.setAttribute("condition",condition);
-//			if(req.getRequestURI().endsWith(".xls")) {
-//				condition = new String(condition.getBytes("ISO-8859-1"), "UTF-8");
-//			}
 			if(StringUtil.hasText(req.getParameter("signCondition"))){
 				if(!MD5Util.encrypt(new String(org.apache.commons.codec.binary.Base64.encodeBase64(condition.getBytes("UTF-8"))).replace("=","")).equals(req.getParameter("signCondition"))) {
 					BaseUtil.showError("非法操作!");

Some files were not shown because too many files changed in this diff