Skip to content

Commit

Permalink
SAK-40883: Wiki > fix link macro for relative links
Browse files Browse the repository at this point in the history
  • Loading branch information
kcarruth authored and bjones86 committed Nov 5, 2018
1 parent a744d13 commit ce3bf25
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ public void execute(Writer writer, MacroParameter params)

// SAK-20449 XSS protection
if (!url.startsWith("http://") && !url.startsWith("https://") && !url.startsWith("ftp://") &&
!url.startsWith("mailto:")) {
!url.startsWith("mailto:") && !url.startsWith("/")) {
log.warn("RWiki URL (" + url + ") looks invalid so we're removing it from the display.");
url = "";
}
Expand Down

0 comments on commit ce3bf25

Please sign in to comment.