Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
removed the & explicit encoding of ampersand character since this is double-translated within the template replacement process.
Michael Peter Christenb9d36e45e083
diff --git a/source/net/yacy/search/query/QueryParams.java b/source/net/yacy/search/query/QueryParams.javaindex 1c492174a..cc2b87966 100644--- a/source/net/yacy/search/query/QueryParams.java+++ b/source/net/yacy/search/query/QueryParams.java@@ -91,7 +91,6 @@ public final class QueryParams {}private static final int defaultmaxfacets = 30;- private static final String ampersand = "&";public static final Bitfield empty_constraint = new Bitfield(4, "AAAAAA");public static final Pattern catchall_pattern = Pattern.compile(".*");private static final Pattern matchnothing_pattern = Pattern.compile("");@@ -591,8 +590,7 @@ public final class QueryParams {final StringBuilder sb = navurlBase(ext, theQuery, newQueryString);- sb.append(ampersand);- sb.append("startRecord=");+ sb.append("&startRecord=");sb.append(page * theQuery.itemsPerPage());return sb;@@ -606,35 +604,27 @@ public final class QueryParams {sb.append("?query=");sb.append(newQueryString == null ? theQuery.getQueryGoal().getOriginalQueryString(true) : newQueryString);- sb.append(ampersand);- sb.append("maximumRecords=");+ sb.append("&maximumRecords=");sb.append(theQuery.itemsPerPage());- sb.append(ampersand);- sb.append("resource=");+ sb.append("&resource=");sb.append((theQuery.isLocal()) ? "local" : "global");- sb.append(ampersand);- sb.append("verify=");+ sb.append("&verify=");sb.append(theQuery.snippetCacheStrategy == null ? "false" : theQuery.snippetCacheStrategy.toName());- sb.append(ampersand);- sb.append("prefermaskfilter=");+ sb.append("&prefermaskfilter=");sb.append(theQuery.prefer);- sb.append(ampersand);- sb.append("cat=href");+ sb.append("&cat=href");- sb.append(ampersand);- sb.append("constraint=");+ sb.append("&constraint=");sb.append((theQuery.constraint == null) ? "" : theQuery.constraint.exportB64());- sb.append(ampersand);- sb.append("contentdom=");+ sb.append("&contentdom=");sb.append(theQuery.contentdom.toString());- sb.append(ampersand);- sb.append("former=");+ sb.append("&former=");sb.append(theQuery.getQueryGoal().getOriginalQueryString(true));return sb;