diff -r 3a0a7a4743d2 -r 3ec9ac297045 includes/functions.php --- a/includes/functions.php Mon Dec 28 12:20:43 2009 -0500 +++ b/includes/functions.php Mon Dec 28 16:53:19 2009 -0500 @@ -2136,7 +2136,7 @@ // Vulnerability reported by fuzion from nukeit.org: // XSS in closing HTML tag style attribute // Fix: escape all closing tags with non-whitelisted characters - $html = preg_replace('!!i', '</\\1>', $html); + $html = preg_replace('!]*)([^a-z0-9_:>-]+)(?:[^>]*))>!i', '</\\1>', $html); // Restore stripped comments $i = 0;