Skip to content

Commit

Permalink
[INLONG-9689][Manager] Optimize MySQL JDBC URL check (#9694)
Browse files Browse the repository at this point in the history
  • Loading branch information
fuweng11 committed Feb 19, 2024
1 parent b37b968 commit cdf6166
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@ public static String filterSensitive(String url) {

List<String> paramList = new ArrayList<>();
String queryString = StringUtils.substringAfter(resultUrl, InlongConstants.QUESTION_MARK);
if (queryString.contains("#")) {
queryString = StringUtils.substringBefore(queryString, "#");
}
for (String param : queryString.split(InlongConstants.AMPERSAND)) {
String key = StringUtils.substringBefore(param, InlongConstants.EQUAL);
String value = StringUtils.substringAfter(param, InlongConstants.EQUAL);
Expand Down

0 comments on commit cdf6166

Please sign in to comment.