aboutsummaryrefslogtreecommitdiffstats
path: root/include/functions_html.inc.php
diff options
context:
space:
mode:
authorflop25 <flop25@piwigo.org>2013-05-06 21:24:26 +0000
committerflop25 <flop25@piwigo.org>2013-05-06 21:24:26 +0000
commit1da192431bc3530afc7bfc3ad4063f22e0fe7389 (patch)
tree4795da69331d9c778515dcab2c4d9354b8bbf968 /include/functions_html.inc.php
parent5a0bd85b80001fb104f9ff419862d00bbe544039 (diff)
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
Diffstat (limited to 'include/functions_html.inc.php')
-rw-r--r--include/functions_html.inc.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/functions_html.inc.php b/include/functions_html.inc.php
index f4eade57f..7581757bb 100644
--- a/include/functions_html.inc.php
+++ b/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 ? '...' : '');
}