Skip to content

Commit cd8c386

Browse files
committed
Obtains the character from the whitelist to put on the output in an attempt to cut Fortify path detection. It does not change the end result of the function.
1 parent e3ff587 commit cd8c386

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

common/src/main/java/com/genexus/CommonUtil.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3466,10 +3466,10 @@ public static String Sanitize(String input, HashMap<Character, Character> whiteL
34663466

34673467
for (char c : input.toCharArray()) {
34683468
if (whiteList.containsKey(c)) {
3469-
sanitizedInput.append(c);
3469+
char safeC = whiteList.get(c);
3470+
sanitizedInput.append(safeC);
34703471
}
34713472
}
3472-
34733473
return sanitizedInput.toString();
34743474
}
34753475
}

0 commit comments

Comments
 (0)