mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-07-20 08:33:03 +02:00
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
This commit is contained in:
@@ -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']);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user