Skip to content

Commit 55cfdbb

Browse files
committed
restore
1 parent 3d7acbf commit 55cfdbb

File tree

4 files changed

+10
-13
lines changed

4 files changed

+10
-13
lines changed

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,12 @@ information: Portions Copyright [yyyy] [name of copyright owner]
1616
1717
CDDL HEADER END
1818
19-
Copyright (c) 2017, 2025, Oracle and/or its affiliates. All rights reserved.
19+
Copyright (c) 2017, 2022, Oracle and/or its affiliates. All rights reserved.
2020
Portions Copyright (c) 2018, Chris Fraire <[email protected]>.
2121
--%>
2222
<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
2323
<%@page session="false" import="org.opengrok.web.PageConfig" %>
2424
<%@ page import="jakarta.servlet.http.HttpServletResponse" %>
25-
<%@ page import="org.opengrok.indexer.web.Util" %>
2625
<%
2726
/* ---------------------- eforbidden.jsp start --------------------- */
2827
{
@@ -38,7 +37,7 @@ Portions Copyright (c) 2018, Chris Fraire <[email protected]>.
3837
</header>
3938
<h3 class="error">Error: access forbidden</h3>
4039
<p>The request was forbidden. This can be either file/directory permissions problem or insufficient authorization.</p>
41-
<%= Util.htmlize(PageConfig.get(request).getEnv().getIncludeFiles().getForbiddenIncludeFileContent(false)) %>
40+
<%= PageConfig.get(request).getEnv().getIncludeFiles().getForbiddenIncludeFileContent(false) %>
4241
<%
4342
}
4443
/* ---------------------- eforbidden.jsp end --------------------- */

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ information: Portions Copyright [yyyy] [name of copyright owner]
1616
1717
CDDL HEADER END
1818
19-
Copyright (c) 2005, 2025, Oracle and/or its affiliates. All rights reserved.
19+
Copyright (c) 2005, 2022, Oracle and/or its affiliates. All rights reserved.
2020
Portions Copyright 2011 Jens Elkner.
2121
Portions Copyright (c) 2018, Chris Fraire <[email protected]>.
2222
@@ -63,10 +63,10 @@ include file="/httpheader.jspf"
6363
+ "not point to a valid directory! Please configure your webapp.";
6464
}
6565
%><h3 class="error">There was an error!</h3>
66-
<p class="error"><%= Util.htmlize(configError) %></p><%
66+
<p class="error"><%= configError %></p><%
6767
if (exception != null) {
6868
%>
69-
<p class="error"><%= Util.htmlize(exception.getMessage()) %></p>
69+
<p class="error"><%= exception.getMessage() %></p>
7070
<pre><%
7171
StringWriter wrt = new StringWriter();
7272
PrintWriter prt = new PrintWriter(wrt);

opengrok-web/src/main/webapp/foot.jspf

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,7 @@ java.util.EnumSet,
2525

2626
org.opengrok.indexer.Info,
2727
org.opengrok.web.PageConfig,
28-
org.opengrok.indexer.web.Prefix,
29-
org.opengrok.indexer.web.Util"
28+
org.opengrok.indexer.web.Prefix"
3029
%>
3130
<%!
3231
/* ---------------------- foot.jspf members start --------------------- */
@@ -50,7 +49,7 @@ org.opengrok.indexer.web.Util"
5049
<% if(dateForLastIndexRun != null) { %>
5150
<p>Last Index Update: <%= dateForLastIndexRun %></p>
5251
<%}%>
53-
<%= Util.htmlize(cfg.getEnv().getIncludeFiles().getFooterIncludeFileContent(false)) %>
52+
<%= cfg.getEnv().getIncludeFiles().getFooterIncludeFileContent(false) %>
5453
<%
5554
if (needAddDiv.contains(cfg.getPrefix())) {
5655
%></div><% // #content

opengrok-web/src/main/webapp/httpheader.jspf

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ information: Portions Copyright [yyyy] [name of copyright owner]
1818

1919
CDDL HEADER END
2020

21-
Copyright (c) 2007, 2025, Oracle and/or its affiliates. All rights reserved.
21+
Copyright (c) 2007, 2021, Oracle and/or its affiliates. All rights reserved.
2222
Portions Copyright 2011 Jens Elkner.
2323
Portions Copyright (c) 2017-2018, 2020, Chris Fraire <[email protected]>.
2424
Portions Copyright (c) 2020, Aleksandr Kirillov <[email protected]>.
@@ -38,7 +38,6 @@ to set the title of the document before the include directive for this fragment:
3838
org.opengrok.indexer.Info,
3939
org.opengrok.web.PageConfig,
4040
org.opengrok.indexer.web.Prefix,
41-
org.opengrok.indexer.web.Util,
4241
org.opengrok.web.Scripts"
4342
%><%
4443
/* ---------------------- httpheader.jsp start --------------------- */
@@ -93,8 +92,8 @@ org.opengrok.web.Scripts"
9392

9493
if (cfg.getPrefix().equals(Prefix.HIST_L)) {
9594
out.write("<link rel=\"alternate\" type=\"application/rss+xml\" " +
96-
"title=\"RSS feed for " + Util.htmlize(cfg.getPath()) + "\" " +
97-
"href=\"" + ctxPath + Prefix.RSS_P + Util.uriEncodePath(cfg.getPath()) + "\" />");
95+
"title=\"RSS feed for " + cfg.getPath() + "\" " +
96+
"href=\"" + ctxPath + Prefix.RSS_P + cfg.getPath() + "\" />");
9897
}
9998
%>
10099
<link rel="search" href="<%=ctxPath%>/opensearch"

0 commit comments

Comments
 (0)