Skip to content

Commit d2e650a

Browse files
committed
no need to encode input attributes
1 parent b85d217 commit d2e650a

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
@@ -230,11 +230,11 @@ document.domReady.push(function() {domReadyHistory();});
230230
<th><input type="submit" value=" Compare "/>
231231
<% if (hist.getHistoryEntries().size() > revision1Index && revision1Index >= 0) { %>
232232
<input type="hidden" id="input_r1" name="<%= QueryParameters.REVISION_1_PARAM %>"
233-
value="<%= Util.uriEncodePath(path) + '@' + hist.getHistoryEntries().get(revision1Index).getRevision() %>"/>
233+
value="<%= path + '@' + hist.getHistoryEntries().get(revision1Index).getRevision() %>"/>
234234
<% } %>
235235
<% if (hist.getHistoryEntries().size() > revision2Index && revision2Index >= 0) { %>
236236
<input type="hidden" id="input_r2" name="<%= QueryParameters.REVISION_2_PARAM %>"
237-
value="<%= Util.uriEncodePath(path) + '@' + hist.getHistoryEntries().get(revision2Index).getRevision() %>"/>
237+
value="<%= path + '@' + hist.getHistoryEntries().get(revision2Index).getRevision() %>"/>
238238
<% } %>
239239
</th><%
240240
}
@@ -323,7 +323,7 @@ document.domReady.push(function() {domReadyHistory();});
323323
data-revision-1="<%= revision1Index %>"
324324
data-revision-2="<%= (startIndex + count) %>"
325325
data-diff-revision="<%= QueryParameters.REVISION_2_PARAM %>"
326-
data-revision-path="<%= Util.htmlize(path) + '@' + hist.getHistoryEntries().get(startIndex + count).getRevision() %>"
326+
data-revision-path="<%= path + '@' + hist.getHistoryEntries().get(startIndex + count).getRevision() %>"
327327
<%
328328
if (count + startIndex < revision2Index || (count + startIndex > revision2Index && count + startIndex <= revision1Index - 1)) {
329329
// revision2 enabled

0 commit comments

Comments
 (0)