From 9cf4a7039773ca79651877dcbf321667de55e9d8 Mon Sep 17 00:00:00 2001 From: patdenice Date: Thu, 2 Jun 2011 15:39:24 +0000 Subject: bug:2321 Tag names must be escaped in tag input. git-svn-id: http://piwigo.org/svn/branches/2.2@11211 68402e56-0260-453c-a942-63ccdbb3a9ee --- admin/themes/default/template/batch_manager_unit.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'admin/themes/default/template/batch_manager_unit.tpl') diff --git a/admin/themes/default/template/batch_manager_unit.tpl b/admin/themes/default/template/batch_manager_unit.tpl index 66b8b6b17..0e39013a9 100644 --- a/admin/themes/default/template/batch_manager_unit.tpl +++ b/admin/themes/default/template/batch_manager_unit.tpl @@ -16,7 +16,7 @@ prefix = ", "; jQuery(document).ready(function() {ldelim} jQuery(tag_boxes_selector).tokenInput( - [{foreach from=$tags item=tag name=tags}{ldelim}"name":"{$tag.name}","id":"{$tag.id}"{rdelim}{if !$smarty.foreach.tags.last},{/if}{/foreach}], + [{foreach from=$tags item=tag name=tags}{ldelim}"name":"{$tag.name|@escape:'javascript'}","id":"{$tag.id}"{rdelim}{if !$smarty.foreach.tags.last},{/if}{/foreach}], {ldelim} hintText: '{'Type in a search term'|@translate}', noResultsText: '{'No results'|@translate}', -- cgit v1.2.3