Skip to content

Commit

Permalink
JCR-3630: XSS in DirListingExportHandler (patch provided by lars krap…
Browse files Browse the repository at this point in the history
…f) (ported to 2.0)

git-svn-id: https://svn.apache.org/repos/asf/jackrabbit/branches/2.0@1732460 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
reschke committed Feb 26, 2016
1 parent f40735f commit e8cf4b5
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ public boolean exportContent(ExportContext context, boolean isCollection) throws
writer.print("/");
}
writer.print("\">");
writer.print(label);
writer.print(Text.encodeIllegalXMLCharacters(label));
writer.print("</a></li>");
}
}
Expand Down Expand Up @@ -226,7 +226,7 @@ public boolean exportContent(ExportContext context, DavResource resource) throws
writer.print("<li><a href=\"");
writer.print(child.getHref());
writer.print("\">");
writer.print(label);
writer.print(Text.encodeIllegalXMLCharacters(label));
writer.print("</a></li>");
}
writer.print("</ul><hr size=\"1\"><em>Powered by <a href=\"");
Expand Down

0 comments on commit e8cf4b5

Please sign in to comment.