--- 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('!</((?:.*)([^a-z0-9-_:]+)(?:.*))>!i', '</\\1>', $html);
+ $html = preg_replace('!</((?:[^>]*)([^a-z0-9_:>-]+)(?:[^>]*))>!i', '</\\1>', $html);
// Restore stripped comments
$i = 0;