Skip to content

Commit

Permalink
Fix not properly reanalyzing for Genre.HTML
Browse files Browse the repository at this point in the history
  • Loading branch information
idodeclare committed Sep 27, 2020
1 parent a433080 commit 2fb1b2e
Showing 1 changed file with 5 additions and 11 deletions.
16 changes: 5 additions & 11 deletions opengrok-web/src/main/webapp/list.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -395,17 +395,11 @@ Click <a href="<%= rawPath %>">download <%= basename %></a><%
<img src="<%= rawPath %>?<%= QueryParameters.REVISION_PARAM_EQ %><%= Util.URIEncode(rev) %>"/>
<pre><%
} else if (genre == Genre.HTML) {
/**
* For backward compatibility, read the
* OpenGrok-produced document using the system
* default charset.
*/
r = new InputStreamReader(in);
/**
* dumpXref() is also useful here for
* translating links.
*/
Util.dumpXref(out, r, request.getContextPath());
// sourceRoot is read with UTF-8 as a default.
r = IOUtils.createBOMStrippedReader(in,
StandardCharsets.UTF_8.name());
AnalyzerGuru.writeDumpedXref(request.getContextPath(), fac, r, out,
null, null, project);
} else {
%>Download file, <a href="<%= rawPath %>?<%= QueryParameters.REVISION_PARAM_EQ %>
<%= Util.URIEncode(rev) %>"><%= basename %></a><%
Expand Down

0 comments on commit 2fb1b2e

Please sign in to comment.