SEBSP-163 removed wrong replacements of + with %2b in URL encoded strings

This commit is contained in:
anhefti 2024-09-10 13:15:45 +02:00
parent 5a8e982910
commit 992d690ffc

View file

@ -411,11 +411,7 @@ public final class Utils {
return value; return value;
} }
return URLDecoder.decode( return URLDecoder.decode(value, StandardCharsets.UTF_8);
(value.indexOf('+') >= 0)
? value.replaceAll("\\+", "%2b")
: value,
StandardCharsets.UTF_8);
} }
public static void clearCharArray(final char[] array) { public static void clearCharArray(final char[] array) {