mirror of
https://github.com/lightbend/config.git
synced 2025-01-16 07:10:21 +08:00
hack ConfigImplUtil.urlToFile to make "file://whatever" with two slashes work
This compounds the wrongness of that method.
This commit is contained in:
parent
3b7d99a797
commit
386613909b
@ -150,6 +150,10 @@ final public class ConfigImplUtil {
|
||||
// this handles some stuff like file:///c:/Whatever/
|
||||
// apparently but mangles handling of hex escapes
|
||||
return new File(url.getPath());
|
||||
} catch (IllegalArgumentException e) {
|
||||
// file://foo with double slash causes
|
||||
// IllegalArgumentException "url has an authority component"
|
||||
return new File(url.getPath());
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user