Skip to content

Commit

Permalink
Merge pull request #23 from hoperunChen/fix-issue-5879
Browse files Browse the repository at this point in the history
fix issues/5879 数据查询传ds=“”造成的异常
  • Loading branch information
zhangdaiscott authored Feb 22, 2024
2 parents 7bfbfa9 + 164c63c commit 8b161de
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
6 changes: 5 additions & 1 deletion docs/修改日志.log
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,8 @@ jeecg-boot-starter-chatgpt/src/main/java/org/jeecg/chatgpt/config/AiChatAutoConf

---author:chenrui---date:2024/02/02-----for:[issue/5778]springAmpq默认mc会验证反序列类可信导致接收消息报错---
jeecg-boot-starter-rabbitmq/src/main/java/org/jeecg/boot/starter/rabbitmq/config/RabbitMqConfig.java
---author:chenrui---date:2024/02/02-----for:[issue/5778]springAmpq默认mc会验证反序列类可信导致接收消息报错---
---author:chenrui---date:2024/02/02-----for:[issue/5778]springAmpq默认mc会验证反序列类可信导致接收消息报错---

---author:chenrui---date:2024/02/22-----for:[issues/5879]数据查询传ds=“”造成的异常---
jeecg-boot-starter-cloud/src/main/java/org/jeecg/starter/cloud/util/HttpUtils.java
---author:chenrui---date:2024/02/22-----for:[issues/5879]数据查询传ds=“”造成的异常---
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,11 @@ public static Map<String, String> getUrlParams(HttpServletRequest request) {
String[] params = param.split("&");
for (String s : params) {
int index = s.indexOf("=");
result.put(s.substring(0, index), s.substring(index + 1));
//update-begin---author:chenrui ---date:20240222 for:[issues/5879]数据查询传ds=“”造成的异常------------
if (index != -1) {
result.put(s.substring(0, index), s.substring(index + 1));
}
//update-end---author:chenrui ---date:20240222 for:[issues/5879]数据查询传ds=“”造成的异常------------
}
return result;
}
Expand All @@ -181,7 +185,11 @@ public static Map<String, String> getUrlParams(String queryString) {
String[] params = param.split("&");
for (String s : params) {
int index = s.indexOf("=");
result.put(s.substring(0, index), s.substring(index + 1));
//update-begin---author:chenrui ---date:20240222 for:[issues/5879]数据查询传ds=“”造成的异常------------
if (index != -1) {
result.put(s.substring(0, index), s.substring(index + 1));
}
//update-end---author:chenrui ---date:20240222 for:[issues/5879]数据查询传ds=“”造成的异常------------
}
return result;
}
Expand Down

0 comments on commit 8b161de

Please sign in to comment.