summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordsnopek2018-10-18 04:46:56 (GMT)
committerDavid Snopek2018-10-18 04:46:56 (GMT)
commit95629557c64cbcaeaa2796251a954bb7d0c77227 (patch)
tree8f507b0705937a874e430fc9aa10a87b2b9632f3
parente2145fab449a964774eceb972a89df943392c4c0 (diff)
Issue #3007501 by dsnopek: [search_autocomplete] Add D6LTS patch for SA-CONTRIB-2018-070HEAD6.x
-rw-r--r--common/contrib/search_autocomplete/SA-CONTRIB-2018-070-6.x-2.x.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/common/contrib/search_autocomplete/SA-CONTRIB-2018-070-6.x-2.x.patch b/common/contrib/search_autocomplete/SA-CONTRIB-2018-070-6.x-2.x.patch
new file mode 100644
index 0000000..c0323d4
--- /dev/null
+++ b/common/contrib/search_autocomplete/SA-CONTRIB-2018-070-6.x-2.x.patch
@@ -0,0 +1,13 @@
+diff --git a/search_autocomplete.module b/search_autocomplete.module
+index 4e80550..feca92c 100644
+--- a/search_autocomplete.module
++++ b/search_autocomplete.module
+@@ -62,7 +62,7 @@ function search_autocomplete_autocomplete($string = '') {
+ $sug_link = array_pop($sug_link_vals);
+ $sug = html_entity_decode(check_plain($sug_elem), ENT_QUOTES);
+ $sug_url = html_entity_decode(check_plain($sug_link), ENT_QUOTES);
+- $sug_pref = trim($prefix) . ' ' . $sug;
++ $sug_pref = check_plain(trim($prefix) . ' ' . $sug);
+ $matches[trim($sug_pref)] = url(trim($sug_url)); // add the suggestion to be returned
+ }
+ }