diff --git a/htroot/ConfigParser.java b/htroot/ConfigParser.java index a861da556..1ac18f6f8 100644 --- a/htroot/ConfigParser.java +++ b/htroot/ConfigParser.java @@ -61,6 +61,7 @@ public class ConfigParser { } } env.setConfig(SwitchboardConstants.PARSER_MIME_DENY, TextParser.getDenyMime()); + env.setConfig(SwitchboardConstants.PARSER_EXTENSIONS_DENY, TextParser.getDenyExtension()); } } diff --git a/source/net/yacy/document/TextParser.java b/source/net/yacy/document/TextParser.java index 850a7a433..919d74417 100644 --- a/source/net/yacy/document/TextParser.java +++ b/source/net/yacy/document/TextParser.java @@ -472,6 +472,7 @@ public final class TextParser { } public static void grantExtension(final String ext, final boolean grant) { + if (ext == null || ext.length() == 0) return; if (grant) denyExtensionx.remove(ext); else denyExtensionx.put(ext, v); } diff --git a/source/net/yacy/search/Switchboard.java b/source/net/yacy/search/Switchboard.java index 2a76c74e1..90c6a5d90 100644 --- a/source/net/yacy/search/Switchboard.java +++ b/source/net/yacy/search/Switchboard.java @@ -636,6 +636,7 @@ public final class Switchboard extends serverSwitch // define a realtime parsable mimetype list this.log.logConfig("Parser: Initializing Mime Type deny list"); TextParser.setDenyMime(getConfig(SwitchboardConstants.PARSER_MIME_DENY, "")); + TextParser.setDenyExtension(getConfig(SwitchboardConstants.PARSER_EXTENSIONS_DENY, "")); // prepare a solr index profile switch list final File solrBackupProfile = new File("defaults/solr.keys.list");