mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
8297569: URLPermission constructor throws IllegalArgumentException: Invalid characters in hostname after JDK-8294378
Reviewed-by: dfuchs
This commit is contained in:
parent
87d1097d9b
commit
2f47f83add
3 changed files with 4 additions and 5 deletions
|
@ -494,7 +494,7 @@ public final class URLPermission extends Permission {
|
|||
auth = authpath.substring(0, delim);
|
||||
this.path = authpath.substring(delim);
|
||||
}
|
||||
this.authority = new Authority(scheme, auth);
|
||||
this.authority = new Authority(scheme, auth.toLowerCase(Locale.ROOT));
|
||||
}
|
||||
|
||||
private String actions() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue