summaryrefslogtreecommitdiff
path: root/modules/tag/controllers
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2012-05-19 11:28:46 -0700
committerBharat Mediratta <bharat@menalto.com>2012-05-19 11:31:25 -0700
commita9be0691d9efd84cbf5a9f05236caf4df23bcfdb (patch)
tree2b5bcf6ecefb5e93d1f00cb450dd8625fcabfe23 /modules/tag/controllers
parent74fa9422db01fbc017ddbc847333cc7847f185ab (diff)
Create an ajax response framework that inserts <meta> tags to guard
against UTF-7, and create a $.gallery_autocomplete variant of jQuery's autocomplete that expects the first line to be a <meta> tag and discards it. More complete fix for #1871.
Diffstat (limited to 'modules/tag/controllers')
-rw-r--r--modules/tag/controllers/tags.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/tag/controllers/tags.php b/modules/tag/controllers/tags.php
index edb8c89b..9af3843e 100644
--- a/modules/tag/controllers/tags.php
+++ b/modules/tag/controllers/tags.php
@@ -57,9 +57,9 @@ class Tags_Controller extends Controller {
->limit($limit)
->find_all();
foreach ($tag_list as $tag) {
- $tags[] = $tag->name;
+ $tags[] = html::clean($tag->name);
}
- print implode("\n", $tags);
+ ajax::response(implode("\n", $tags));
}
}