diff options
author | rvelices <rv-github@modusoptimus.com> | 2013-05-07 04:52:08 +0000 |
---|---|---|
committer | rvelices <rv-github@modusoptimus.com> | 2013-05-07 04:52:08 +0000 |
commit | f6bcdf433553e4b95be92b91e270a75571254abd (patch) | |
tree | 4db5ff7f9a81cef46deb8737dcc840fa10a02912 | |
parent | 1da192431bc3530afc7bfc3ad4063f22e0fe7389 (diff) |
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
Diffstat (limited to '')
-rw-r--r-- | include/functions_html.inc.php | 6 |
1 files 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)); |