mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-11 03:13:38 +00:00
Merge pull request #2421 from tkalmar/master
Encode partial URL. Fixes #1536
This commit is contained in:
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");
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user