added search protection also to detailed search

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@3755 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
orbiter 18 years ago
parent b3d2fafcfb
commit 54ca71535e

@ -165,8 +165,10 @@ public class DetailedSearch {
public static serverObjects respond(httpHeader header, serverObjects post, serverSwitch env) {
final plasmaSwitchboard sb = (plasmaSwitchboard) env;
boolean searchAllowed = sb.getConfigBool("publicSearchpage", true) || sb.verifyAuthentication(header, false);
// case if no values are requested
if (post == null || env == null) {
if ((post == null) || (env == null) || (!searchAllowed)) {
// we create empty entries for template strings
final serverObjects prop = defaultValues();
plasmaSearchRankingProfile ranking = (sb.getConfig("rankingProfile", "").length() == 0) ? new plasmaSearchRankingProfile("text") : new plasmaSearchRankingProfile("", crypt.simpleDecode(sb.getConfig("rankingProfile", ""), null));

Loading…
Cancel
Save