From ca7444dbdf2f0a07853450dcc7ddec02ea3c974b Mon Sep 17 00:00:00 2001 From: reger Date: Sun, 23 Mar 2014 23:10:29 +0100 Subject: [PATCH] limit filetype nav to known extension also on image/media search - on text search we limit filetype nav already to known extension, apply filter to image search --- source/net/yacy/search/query/SearchEvent.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/net/yacy/search/query/SearchEvent.java b/source/net/yacy/search/query/SearchEvent.java index 2b425a721..91b38bf45 100644 --- a/source/net/yacy/search/query/SearchEvent.java +++ b/source/net/yacy/search/query/SearchEvent.java @@ -780,6 +780,8 @@ public final class SearchEvent { //Log.logInfo("SearchEvent", "removed unknown extension " + ext + " from navigation."); i.remove(); } + } else { // for image and media search also limit to known extension + if (!Classification.isAnyKnownExtension(ext)) i.remove(); } } this.filetypeNavigator.inc(fcts);