# HG changeset patch # User Dan # Date 1201495442 18000 # Node ID b4751b55ee92d5c8e21138676b8676f4c6b44ac5 # Parent 73444271fd1c2016c4d4f8ddfca36ee37fb2a276 Fixed case where HTML comments were getting stripped when opening tag not followed by whitespace ( was stripped, was not, neither is stripped now) diff -r 73444271fd1c -r b4751b55ee92 includes/functions.php --- a/includes/functions.php Sun Jan 27 23:17:15 2008 -0500 +++ b/includes/functions.php Sun Jan 27 23:44:02 2008 -0500 @@ -1831,7 +1831,7 @@ // Debugging message // echo htmlspecialchars($full_tag) . '
'; - if ( !in_array($tag_name, $tag_whitelist) ) + if ( !in_array($tag_name, $tag_whitelist) && substr($tag_name, 0, 3) != '!--' ) { // Illegal tag //echo $tag_name . ' ';