diff options
| author | reger <reger18@arcor.de> | 2017-02-14 02:04:42 +0100 |
|---|---|---|
| committer | reger <reger18@arcor.de> | 2017-02-14 02:04:42 +0100 |
| commit | a011a97de9175811c49222c9750d8a0380093f8b (patch) | |
| tree | 0e7706ea998188150b78f14a36fa32f70f9618fa | |
| parent | f85aaa7c76e131f09503ea6752add97e18929393 (diff) | |
make ConfigParser a protected page, for consistent behavior of locked
menu items.
| -rw-r--r-- | htroot/ConfigParser_p.html (renamed from htroot/ConfigParser.html) | 2 | ||||
| -rw-r--r-- | htroot/ConfigParser_p.java (renamed from htroot/ConfigParser.java) | 7 | ||||
| -rw-r--r-- | htroot/env/templates/submenuCrawler.template | 2 |
3 files changed, 3 insertions, 8 deletions
diff --git a/htroot/ConfigParser.html b/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 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 |
