Permalink
Browse files

bug:2896

debugg the empty()
adding htmlspecialchars(strip_tags()) before the truncature in order to avoid blanks, if the description has html/ExtendedDescription tags

git-svn-id: http://piwigo.org/svn/trunk@22518 68402e56-0260-453c-a942-63ccdbb3a9ee
  • Loading branch information...
flop25 committed May 6, 2013
1 parent 5a0bd85 commit 1da192431bc3530afc7bfc3ad4063f22e0fe7389
Showing with 2 additions and 2 deletions.
  1. +2 −2 include/functions_html.inc.php
@@ -583,9 +583,9 @@ function get_thumbnail_title($info, $title, $comment)
$title.= ' ('.implode(', ', $details).')';
}
if (!empty($comment))
if (!empty($info['comment']))
{
$info['comment'] = trigger_event('render_element_description', $info['comment']);
$info['comment'] = htmlspecialchars(strip_tags(trigger_event('render_element_description', $info['comment'])));
$title.= ' '.substr($info['comment'], 0, 100).(strlen($info['comment']) > 100 ? '...' : '');
}

0 comments on commit 1da1924

Please sign in to comment.