Changeset 22519


Ignore:
Timestamp:
May 6, 2013, 11:27:19 PM (7 years ago)
Author:
flop25
Message:

merge svn:22518 from trunk to 2.5
bug:2896
debugg the empty()
adding htmlspecialchars(strip_tags()) before the truncature in order to avoid blanks, if the description has html/ExtendedDescription tags

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.5/include/functions_html.inc.php

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