Merge pull request #2421 from tkalmar/master

Encode partial URL. Fixes #1536
This commit is contained in:
Reinier Zwitserloot authored and GitHub committed 2020-04-16 23:41:13 +02:00
commit 221783c1c2
1 file changed
+2 -1
@@ -321,8 +321,9 @@ class ShadowClassLoader extends ClassLoader {
}
private static String urlDecode(String in) {
final String plusFixed = in.replaceAll("\\+", "%2B");
try {
return URLDecoder.decode(in, "UTF-8");
return URLDecoder.decode(plusFixed, "UTF-8");
} catch (UnsupportedEncodingException e) {
throw new InternalError("UTF-8 not supported");
}