Skip to content

Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance

make ConfigParser a protected page, for consistent behavior of locked menu items.

regera011a97de917
diff --git a/htroot/ConfigParser.html b/htroot/ConfigParser_p.html
similarity index 97%
rename from htroot/ConfigParser.html
rename to htroot/ConfigParser_p.html
index 20e6944ee..2b920854c 100644
--- a/htroot/ConfigParser.html
+++ b/htroot/ConfigParser_p.html
@@ -18,7 +18,7 @@
#%env/templates/header.template%#
#%env/templates/submenuCrawler.template%#
<h2>Parser Configuration</h2>
-<form id="parsersettings" action="ConfigParser.html" method="post" enctype="multipart/form-data">
+<form id="parsersettings" action="ConfigParser_p.html" method="post" enctype="multipart/form-data">
<fieldset><legend id="parser">Content Parser Settings</legend>
<p>
With this settings you can activate or deactivate parsing of additional content-types based on their MIME-types.<br />
diff --git a/htroot/ConfigParser.java b/htroot/ConfigParser_p.java
similarity index 95%
rename from htroot/ConfigParser.java
rename to htroot/ConfigParser_p.java
index 32510ecb2..6eef69fe7 100644
--- a/htroot/ConfigParser.java
+++ b/htroot/ConfigParser_p.java
@@ -35,7 +35,7 @@ import net.yacy.server.serverObjects;
import net.yacy.server.serverSwitch;
-public class ConfigParser {
+public class ConfigParser_p {
public static serverObjects respond(final RequestHeader header, final serverObjects post, final serverSwitch env) {
// return variable that accumulates replacements
@@ -44,11 +44,6 @@ public class ConfigParser {
if (post != null) {
- if (!sb.verifyAuthentication(header)) {
- // force log-in
- prop.authenticationRequired();
- return prop;
- }
if (post.containsKey("parserSettings")) {
post.remove("parserSettings");
diff --git a/htroot/env/templates/submenuCrawler.template b/htroot/env/templates/submenuCrawler.template
index 2c17e25a0..6a647d62e 100644
--- a/htroot/env/templates/submenuCrawler.template
+++ b/htroot/env/templates/submenuCrawler.template
@@ -2,6 +2,6 @@
<h3>Load Web Pages</h3>
<ul class="SubMenu">
<li><a href="CrawlStartSite.html" class="MenuItemLink">Site Crawling</a></li>
- <li><a href="ConfigParser.html" class="MenuItemLink #(authorized)#lock::unlock#(/authorized)#">Parser Configuration</a></li>
+ <li><a href="ConfigParser_p.html" class="MenuItemLink #(authorized)#lock::unlock#(/authorized)#">Parser Configuration</a></li>
</ul>
</div>
\ No newline at end of file