aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrub <rub@piwigo.org>2006-10-21 22:00:57 +0000
committerrub <rub@piwigo.org>2006-10-21 22:00:57 +0000
commitdecab460c023701db7f4268b0d7cfd1a4b728413 (patch)
treea811fed2e5d9b42bedf81affb7a59490897c0546
parent258fa3b40c0c60adad284ad3bc09ed33c5dc53a1 (diff)
Resolved Issue ID 0000567:
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
-rw-r--r--include/functions_category.inc.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/functions_category.inc.php b/include/functions_category.inc.php
index 939a72e77..ceef3025d 100644
--- a/include/functions_category.inc.php
+++ b/include/functions_category.inc.php
@@ -142,7 +142,7 @@ SELECT '.implode(',', $infos).'
}
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']);
}