Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
fix: HTML-escape prefermaskfilter in early-return path to prevent reflected XSS (#401)
Leobabfe58049c0
diff --git a/source/net/yacy/htroot/yacysearch.java b/source/net/yacy/htroot/yacysearch.javaindex dbe77d1ec..05647672d 100644--- a/source/net/yacy/htroot/yacysearch.java+++ b/source/net/yacy/htroot/yacysearch.java@@ -188,7 +188,7 @@ public class yacysearch {prop.put("offset", "0");prop.put("resource", "global");prop.put("urlmaskfilter", (post == null) ? ".*" : post.get("urlmaskfilter", ".*"));- prop.put("prefermaskfilter", (post == null) ? "" : post.get("prefermaskfilter", ""));+ prop.putHTML("prefermaskfilter", (post == null) ? "" : post.get("prefermaskfilter", ""));prop.put("indexof", "off");prop.put("constraint", "");prop.put("depth", "0");