Skip to content

Commit

Permalink
WIP 344 Intermediate workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
ascheman authored and Gerd Aschemann (EXT) committed Nov 19, 2024
1 parent ad35846 commit 0eaaffd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,11 @@ public static boolean isLocalResource(String link) {
throw new InvalidUriSyntaxException(e);
}

if (null == aUri.getPath()) {
log.warn("'{}' does not have a valid (URI) path", link);
return false;
}

return (
(isLinkToFile(aUri)) // (1)
||
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ class WebSpec extends Specification {
false | "10.0.0.1/index.html" // this is a valid REMOTE address, defaults to http or https

false | "javascript:dummy"
false | "xmxaxixlxtxo:[email protected]"
}

@Unroll
Expand Down

0 comments on commit 0eaaffd

Please sign in to comment.