Changeset 22520


Ignore:
Timestamp:
May 7, 2013, 6:52:08 AM (11 years ago)
Author:
rvelices
Message:

bug 2896 - thumbnail title fix (use $comment parameter + no double htmlspecialchars)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/functions_html.inc.php

    r22518 r22520  
    584584  }
    585585
    586   if (!empty($info['comment']))
    587   {
    588     $info['comment'] = htmlspecialchars(strip_tags(trigger_event('render_element_description', $info['comment'])));
    589     $title.= ' '.substr($info['comment'], 0, 100).(strlen($info['comment']) > 100 ? '...' : '');
     586  if (!empty($comment))
     587  {
     588    $comment = strip_tags($comment);
     589    $title.= ' '.substr($comment, 0, 100).(strlen($comment) > 100 ? '...' : '');
    590590  }
    591591
Note: See TracChangeset for help on using the changeset viewer.