File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/test/java/org/htmlunit Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -391,7 +391,7 @@ public void toLocaleLowerCase() throws Exception {
391391 public void localFile () throws Exception {
392392 final URL url = getClass ().getClassLoader ().getResource ("simple.html" );
393393 String file = url .getFile ();
394- if (file .startsWith ("/" )) {
394+ if (file .startsWith ("/" ) && file . contains ( ":" ) ) {
395395 file = file .substring (1 );
396396 }
397397
@@ -414,7 +414,7 @@ public void localFile() throws Exception {
414414 public void localFileFile () throws Exception {
415415 final URL url = getClass ().getClassLoader ().getResource ("simple.html" );
416416 String file = url .getFile ();
417- if (file .startsWith ("/" )) {
417+ if (file .startsWith ("/" ) && file . contains ( ":" ) ) {
418418 file = file .substring (1 );
419419 }
420420
You can’t perform that action at this time.
0 commit comments