Skip to content

Commit

Permalink
SEBSP-163 removed wrong replacements of + with %2b in URL encoded str…
Browse files Browse the repository at this point in the history
…ings
  • Loading branch information
anhefti committed Sep 10, 2024
1 parent 5a8e982 commit 992d690
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/main/java/ch/ethz/seb/sebserver/gbl/util/Utils.java
Original file line number Diff line number Diff line change
Expand Up @@ -411,11 +411,7 @@ public static String decodeFormURL_UTF_8(final String value) {
return value;
}

return URLDecoder.decode(
(value.indexOf('+') >= 0)
? value.replaceAll("\\+", "%2b")
: value,
StandardCharsets.UTF_8);
return URLDecoder.decode(value, StandardCharsets.UTF_8);
}

public static void clearCharArray(final char[] array) {
Expand Down

0 comments on commit 992d690

Please sign in to comment.