Skip to content

Commit

Permalink
#342 Handle < and > in URIs as invalid
Browse files Browse the repository at this point in the history
  • Loading branch information
ascheman committed Jan 24, 2025
1 parent 5989fe8 commit 783a634
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 783a634

Please sign in to comment.