From c1f445f510cf82486044ea71764ef6253f5adff3 Mon Sep 17 00:00:00 2001 From: plegall Date: Mon, 4 Mar 2013 14:31:46 +0000 Subject: bug 2859 fixed: sanitize of photo title before use in title/alt HTML attributes git-svn-id: http://piwigo.org/svn/trunk@21175 68402e56-0260-453c-a942-63ccdbb3a9ee --- themes/default/template/picture.tpl | 8 ++++---- themes/default/template/picture_content.tpl | 4 ++-- themes/default/template/picture_nav_buttons.tpl | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/themes/default/template/picture.tpl b/themes/default/template/picture.tpl index 5bf59be96..4d73ae389 100644 --- a/themes/default/template/picture.tpl +++ b/themes/default/template/picture.tpl @@ -134,15 +134,15 @@ y.callService( {if $DISPLAY_NAV_THUMB} diff --git a/themes/default/template/picture_content.tpl b/themes/default/template/picture_content.tpl index 2b745f65f..793c275ea 100644 --- a/themes/default/template/picture_content.tpl +++ b/themes/default/template/picture_content.tpl @@ -10,11 +10,11 @@ {assign var='size' value=$derivative->get_size()} {if isset($previous)} -{$previous.TITLE} +{$previous.TITLE|@escape} {/if} {'Thumbnails'|@translate} {if isset($next)} -{$next.TITLE} +{$next.TITLE|@escape} {/if} {/strip}{/foreach} \ No newline at end of file diff --git a/themes/default/template/picture_nav_buttons.tpl b/themes/default/template/picture_nav_buttons.tpl index fb6c0c7e9..6da241c51 100644 --- a/themes/default/template/picture_nav_buttons.tpl +++ b/themes/default/template/picture_nav_buttons.tpl @@ -45,7 +45,7 @@ {/if}{/strip} {strip}{if isset($previous)} - +  {'Previous'|@translate} {else} @@ -64,7 +64,7 @@ {/if} {strip}{if isset($next)} - +  {'Next'|@translate} {else} -- cgit v1.2.3