Skip to content

Commit 18cdc06

Browse files
committed
encode file elements
1 parent d2e650a commit 18cdc06

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

opengrok-web/src/main/webapp/history.jsp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -406,11 +406,11 @@ document.domReady.push(function() {domReadyHistory();});
406406
String jfile = Util.stripPathPrefix(path, ifile);
407407
if (Objects.equals(rev, "")) {
408408
%>
409-
<a class="h" href="<%= context + Prefix.XREF_P + ifile %>"><%= jfile %></a><br/><%
409+
<a class="h" href="<%= context + Prefix.XREF_P + Util.uriEncodePath(ifile) %>"><%= Util.htmlize(jfile) %></a><br/><%
410410
} else {
411411
%>
412-
<a class="h" href="<%= context + Prefix.XREF_P + ifile %>?<%= QueryParameters.REVISION_PARAM_EQ %>
413-
<%= rev %>"><%= jfile %></a><br/><%
412+
<a class="h" href="<%= context + Prefix.XREF_P + Util.uriEncodePath(ifile) %>?<%= QueryParameters.REVISION_PARAM_EQ %>
413+
<%= rev %>"><%= Util.htmlize(jfile) %></a><br/><%
414414
}
415415
}
416416
%></div><%

0 commit comments

Comments
 (0)