aboutsummaryrefslogtreecommitdiffstats
path: root/include/functions_html.inc.php
diff options
context:
space:
mode:
authorflop25 <flop25@piwigo.org>2013-05-13 16:21:41 +0000
committerflop25 <flop25@piwigo.org>2013-05-13 16:21:41 +0000
commit4c95c8e6b5b9514e53b095cfe27cd6cad539c7d2 (patch)
treec6acfef04433dddd9aeb3232b4e66b43e16f4dd1 /include/functions_html.inc.php
parent435de956465c1df2c941511d1525384e35ee1ec3 (diff)
merge svn:22520 from trunk to 2.5
bug:2896 thumbnail title fix (use $comment parameter + no double htmlspecialchars) git-svn-id: http://piwigo.org/svn/branches/2.5@22634 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--include/functions_html.inc.php6
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));