summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Braksator2012-01-30 00:56:21 (GMT)
committerDaniel 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);
}
/* Name.Builtin */ .highlight .nc { color: #bb0066; font-weight: bold } /* Name.Class */ .highlight .no { color: #003366; font-weight: bold } /* Name.Constant */ .highlight .nd { color: #555555 } /* Name.Decorator */ .highlight .ne { color: #bb0066; font-weight: bold } /* Name.Exception */ .highlight .nf { color: #0066bb; font-weight: bold } /* Name.Function */ .highlight .nl { color: #336699; font-style: italic } /* Name.Label */ .highlight .nn { color: #bb0066; font-weight: bold } /* Name.Namespace */ .highlight .py { color: #336699; font-weight: bold } /* Name.Property */ .highlight .nt { color: #bb0066; font-weight: bold } /* Name.Tag */ .highlight .nv { color: #336699 } /* Name.Variable */ .highlight .ow { color: #008800 } /* Operator.Word */ .highlight .w { color: #bbbbbb } /* Text.Whitespace */ .highlight .mf { color: #0000DD; font-weight: bold } /* Literal.Number.Float */ .highlight .mh { color: #0000DD; font-weight: bold } /* Literal.Number.Hex */ .highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */ .highlight .mo { color: #0000DD; font-weight: bold } /* Literal.Number.Oct */ .highlight .sb { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Backtick */ .highlight .sc { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Char */ .highlight .sd { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Doc */ .highlight .s2 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Double */ .highlight .se { color: #0044dd; background-color: #fff0f0 } /* Literal.String.Escape */ .highlight .sh { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Heredoc */ .highlight .si { color: #3333bb; background-color: #fff0f0 } /* Literal.String.Interpol */ .highlight .sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */ .highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .hig