diff options
author | patdenice <patdenice@piwigo.org> | 2011-06-02 15:39:24 +0000 |
---|---|---|
committer | patdenice <patdenice@piwigo.org> | 2011-06-02 15:39:24 +0000 |
commit | 9cf4a7039773ca79651877dcbf321667de55e9d8 (patch) | |
tree | f49452ee7d47d4b70d529af468cf3c6311b12172 /admin/themes/default/template/batch_manager_global.tpl | |
parent | 488c3cf4066b1efd01950f09c28b7236f4f4b14d (diff) |
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
Diffstat (limited to 'admin/themes/default/template/batch_manager_global.tpl')
-rw-r--r-- | admin/themes/default/template/batch_manager_global.tpl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/admin/themes/default/template/batch_manager_global.tpl b/admin/themes/default/template/batch_manager_global.tpl index b01a120a1..58c941cbf 100644 --- a/admin/themes/default/template/batch_manager_global.tpl +++ b/admin/themes/default/template/batch_manager_global.tpl @@ -10,7 +10,7 @@ {footer_script require='jquery.tokeninput'} jQuery(document).ready(function() {ldelim} jQuery("#tags").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}', |