Skip to content

Commit a683a9e

Browse files
committed
#344 Intermediate workaround
1 parent 783a634 commit a683a9e

File tree

2 files changed

+6
-0
lines changed
  • htmlSanityCheck-core/src

2 files changed

+6
-0
lines changed

htmlSanityCheck-core/src/main/java/org/aim42/htmlsanitycheck/tools/Web.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,11 @@ public static boolean isLocalResource(String link) {
229229
throw new InvalidUriSyntaxException(e);
230230
}
231231

232+
if (null == aUri.getPath()) {
233+
log.warn("'{}' does not have a valid (URI) path", link);
234+
return false;
235+
}
236+
232237
return (
233238
(isLinkToFile(aUri)) // (1)
234239
||

htmlSanityCheck-core/src/test/groovy/org/aim42/htmlsanitycheck/tools/WebSpec.groovy

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ class WebSpec extends Specification {
108108
false | "10.0.0.1/index.html" // this is a valid REMOTE address, defaults to http or https
109109

110110
false | "javascript:dummy"
111+
false | "xmxaxixlxtxo:[email protected]"
111112
}
112113

113114
@Unroll

0 commit comments

Comments
 (0)