Changeset 1046 for trunk/include


Ignore:
Timestamp:
Feb 17, 2006, 3:41:57 AM (19 years ago)
Author:
rvelices
Message:

fix: remote site decodes html entities from xml and addslashes

fix: picture displays "image rank/total" images even for non numeric categories

fix: category comment not transformed with nl2br if allow_html_descriptions and
comment already looks like html

File:
1 edited

Legend:

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

    r1042 r1046  
    161161    }
    162162  }
    163   $cat['comment'] = nl2br($cat['comment']);
     163  global $conf;
     164  if ( !( $conf['allow_html_descriptions'] and
     165          preg_match('/<(div|br|img).*>/i', $cat['comment']) ) )
     166  {
     167    $cat['comment'] = nl2br($cat['comment']);
     168  }
    164169
    165170  $names = array();
Note: See TracChangeset for help on using the changeset viewer.