Skip to content

armgit / nutch

Public Imported from GitHub
0

Apache Nutch is an extensible and scalable web crawler

Fix a null pointer exception and a broken link.

Douglass Cutting3f3aa6c9dc38
diff --git a/src/web/jsp/more.jsp b/src/web/jsp/more.jsp
index bbca0a301..e13349dec 100644
--- a/src/web/jsp/more.jsp
+++ b/src/web/jsp/more.jsp
@@ -44,9 +44,9 @@
%>
<% if (showMore) {
- if (primaryType.equalsIgnoreCase("text")) { %>
+ if ("text".equalsIgnoreCase(primaryType)) { %>
<br><font size=-1><nobr><%=contentType%> <%=contentLength%> <%=lastModified%></nobr></font>
<% } else { %>
- <br><font size=-1><nobr><%=contentType%> <%=contentLength%> <%=lastModified%> - <a href="text.jsp?<%=id%>"><i18n:message key="viewAsText"/></a></nobr></font>
+ <br><font size=-1><nobr><%=contentType%> <%=contentLength%> <%=lastModified%> - <a href="../text.jsp?<%=id%>"><i18n:message key="viewAsText"/></a></nobr></font>
<% }
} %>