Skip to content

Commit

Permalink
Resolved Issue ID 0000567:
Browse files Browse the repository at this point in the history
  o Don't add <BR> for categories with description including <script>

(See category ping-pong, ...)



git-svn-id: http://piwigo.org/svn/trunk@1573 68402e56-0260-453c-a942-63ccdbb3a9ee
  • Loading branch information
rub committed Oct 21, 2006
1 parent 258fa3b commit decab46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/functions_category.inc.php
Expand Up @@ -142,7 +142,7 @@ function get_cat_info( $id )
}
global $conf;
if ( !( $conf['allow_html_descriptions'] and
preg_match('/<(div|br|img).*>/i', $cat['comment']) ) )
preg_match('/<(div|br|img|script).*>/i', $cat['comment']) ) )
{
$cat['comment'] = nl2br($cat['comment']);
}
Expand Down

0 comments on commit decab46

Please sign in to comment.