Unverified Commit 95629557 authored by dsnopek's avatar dsnopek Committed by dsnopek

Issue #3007501 by dsnopek: [search_autocomplete] Add D6LTS patch for SA-CONTRIB-2018-070

parent e2145fab
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
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment