From f6bcdf433553e4b95be92b91e270a75571254abd Mon Sep 17 00:00:00 2001 From: rvelices Date: Tue, 7 May 2013 04:52:08 +0000 Subject: [PATCH] bug 2896 - thumbnail title fix (use $comment parameter + no double htmlspecialchars) git-svn-id: http://piwigo.org/svn/trunk@22520 68402e56-0260-453c-a942-63ccdbb3a9ee --- include/functions_html.inc.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/functions_html.inc.php b/include/functions_html.inc.php index 7581757bb..2daac2c83 100644 --- a/include/functions_html.inc.php +++ b/include/functions_html.inc.php @@ -583,10 +583,10 @@ function get_thumbnail_title($info, $title, $comment) $title.= ' ('.implode(', ', $details).')'; } - if (!empty($info['comment'])) + if (!empty($comment)) { - $info['comment'] = htmlspecialchars(strip_tags(trigger_event('render_element_description', $info['comment']))); - $title.= ' '.substr($info['comment'], 0, 100).(strlen($info['comment']) > 100 ? '...' : ''); + $comment = strip_tags($comment); + $title.= ' '.substr($comment, 0, 100).(strlen($comment) > 100 ? '...' : ''); } $title = htmlspecialchars(strip_tags($title));