Skip to content

Commit

Permalink
WIP 342 Handle < and > in URIs as invalid
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 fd966b3 commit ad35846
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ public static boolean isCrossReference(String xref) {

}

private static final Pattern ILLEGAL_CHARS_REGEX = Pattern.compile("[ *$]");
private static final Pattern ILLEGAL_CHARS_REGEX = Pattern.compile("[ *$<>]");

/**
* helper to identify invalid characters in link
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ class WebSpec extends Specification {

true | "#Context Analysis" // regression test, contains blank
true | "*Context-Analysis" // * is not allowed

true | "../concepts/workflow.html#<em>catalog</em>" // < etc. ist not allowed
}


Expand Down

0 comments on commit ad35846

Please sign in to comment.