# HG changeset patch # User Dan # Date 1201495404 18000 # Node ID 35f9d6c93eec48530d4b432ccafd74f1fdf6b0be # Parent f725a16e4a2078f6be70a7b96f0471f0ddd9c702 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 f725a16e4a20 -r 35f9d6c93eec includes/functions.php --- a/includes/functions.php Sun Jan 20 23:18:03 2008 -0500 +++ b/includes/functions.php Sun Jan 27 23:43:24 2008 -0500 @@ -1791,7 +1791,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 . ' ';