diff options
author | plegall <plg@piwigo.org> | 2013-03-04 14:31:46 +0000 |
---|---|---|
committer | plegall <plg@piwigo.org> | 2013-03-04 14:31:46 +0000 |
commit | c1f445f510cf82486044ea71764ef6253f5adff3 (patch) | |
tree | 7c25b97a482877fa2323d429db25e1d6e9e55046 /themes/default/template/picture.tpl | |
parent | 6c1e393bea84b1e85dd87a49179bc91d06b96c08 (diff) |
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
Diffstat (limited to '')
-rw-r--r-- | themes/default/template/picture.tpl | 8 |
1 files changed, 4 insertions, 4 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} <div class="navThumbs"> {if isset($previous)} - <a class="navThumb" id="linkPrev" href="{$previous.U_IMG}" title="{'Previous'|@translate} : {$previous.TITLE}" rel="prev"> + <a class="navThumb" id="linkPrev" href="{$previous.U_IMG}" title="{'Previous'|@translate} :: {$previous.TITLE|@escape}" rel="prev"> <span class="thumbHover prevThumbHover"></span> - <img src="{$previous.derivatives.square->get_url()}" alt="{$previous.TITLE}"> + <img src="{$previous.derivatives.square->get_url()}" alt="{$previous.TITLE|@escape}"> </a> {/if} {if isset($next)} - <a class="navThumb" id="linkNext" href="{$next.U_IMG}" title="{'Next'|@translate} : {$next.TITLE}" rel="next"> + <a class="navThumb" id="linkNext" href="{$next.U_IMG}" title="{'Next'|@translate} : {$next.TITLE|@escape}" rel="next"> <span class="thumbHover nextThumbHover"></span> - <img src="{$next.derivatives.square->get_url()}" alt="{$next.TITLE}"> + <img src="{$next.derivatives.square->get_url()}" alt="{$next.TITLE|@escape}"> </a> {/if} </div> |