Skip to content

Commit 8cc05be

Browse files
committed
rename dispRev
1 parent d16ad2b commit 8cc05be

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ document.domReady.push(function() {domReadyHistory();});
262262
continue;
263263
}
264264
265-
final String dispRev = Optional.ofNullable(entry.getDisplayRevision()).
265+
final String htmlEncodedDisplayRevision = Optional.ofNullable(entry.getDisplayRevision()).
266266
map(Util::htmlize).
267267
orElse("");
268268
final String rev = Optional.ofNullable(entry.getRevision()).
@@ -286,7 +286,7 @@ document.domReady.push(function() {domReadyHistory();});
286286
<tr><%
287287
if (cfg.isDir()) {
288288
%>
289-
<td><%= dispRev %></td><%
289+
<td><%= htmlEncodedDisplayRevision %></td><%
290290
} else {
291291
if (entry.isActive()) {
292292
StringBuffer urlBuffer = request.getRequestURL();
@@ -298,7 +298,7 @@ document.domReady.push(function() {domReadyHistory();});
298298
<td><a href="<%= urlBuffer %>"
299299
title="link to revision line">#</a>
300300
<a href="<%= context + Prefix.XREF_P + uriEncodedName + "?" +
301-
QueryParameters.REVISION_PARAM_EQ + Util.uriEncode(rev) %>"><%= dispRev %>
301+
QueryParameters.REVISION_PARAM_EQ + Util.uriEncode(rev) %>"><%= htmlEncodedDisplayRevision %>
302302
</a></td>
303303
<td><%
304304
%><input type="radio"
@@ -340,7 +340,7 @@ document.domReady.push(function() {domReadyHistory();});
340340
} else {
341341
striked = true;
342342
%>
343-
<td><del><%= dispRev %></del></td>
343+
<td><del><%= htmlEncodedDisplayRevision %></del></td>
344344
<td></td><%
345345
}
346346
}
@@ -363,7 +363,7 @@ document.domReady.push(function() {domReadyHistory();});
363363
%><%= Util.htmlize(author) %><%
364364
}
365365
%></td>
366-
<td><a id="<%= dispRev %>"></a><%
366+
<td><a id="<%= htmlEncodedDisplayRevision %>"></a><%
367367
// revision message collapse threshold minimum of 10
368368
int summaryLength = Math.max(10, cfg.getRevisionMessageCollapseThreshold());
369369
String cout = Util.htmlize(entry.getMessage());

0 commit comments

Comments
 (0)