Commit bf03041
committed
Fix FileUtils#urlToFile() on Windows
Under certain circumstances, on Windows, URLs are translated into
strings of the form "file:C:/..." (which the URL constructor does not
like at all) instead of "file:/C:/..." (which the URL constructor
does like).
Let's be lenient on Windows and just accept even the first form.
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>1 parent 0693a81 commit bf03041
1 file changed
+6
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
69 | 72 | | |
70 | 73 | | |
71 | 74 | | |
| |||
204 | 207 | | |
205 | 208 | | |
206 | 209 | | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
207 | 213 | | |
208 | 214 | | |
209 | 215 | | |
| |||
0 commit comments