summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Braksator2012-01-30 00:56:21 (GMT)
committer Daniel Braksator2012-01-30 00:56:21 (GMT)
commit758fcf9378fb37e731df683e9aeb9448c09c97af (patch)
tree4fbcae31c716b2481ad13c941cb2533ca747acb6
parent02e8f3e42571b3ac88045225386666eda7809e48 (diff)
If you say it softly the effect can be hypnocious.7.x-2.0-alpha7
-rw-r--r--plugins/element_handler/autocomplete.inc4
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/element_handler/autocomplete.inc b/plugins/element_handler/autocomplete.inc
index bb2f132..50a1976 100644
--- a/plugins/element_handler/autocomplete.inc
+++ b/plugins/element_handler/autocomplete.inc
@@ -364,6 +364,10 @@ function finder_autocomplete_autocomplete($finder_name, $element_id, $keywords =
$finder->find();
$choices = !empty($finder->find['results']) ? $finder->find['results'] : array();
+ foreach (array_keys($choices) as $autofill) {
+ $choices[$autofill] = filter_xss($choices[$autofill]);
+ }
+
drupal_json_output($choices);
}