From a9be0691d9efd84cbf5a9f05236caf4df23bcfdb Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Sat, 19 May 2012 11:28:46 -0700 Subject: Create an ajax response framework that inserts tags to guard against UTF-7, and create a $.gallery_autocomplete variant of jQuery's autocomplete that expects the first line to be a tag and discards it. More complete fix for #1871. --- modules/tag/controllers/tags.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/tag/controllers') 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)); } } -- cgit v1.2.3