From 81f6aa1462ffd4bcd7892b68edda6880eb393773 Mon Sep 17 00:00:00 2001 From: Antoine Musso Date: Mon, 24 Apr 2006 19:25:14 +0000 Subject: [PATCH] Fix bug 5497: Regression in HTML normalization in 1.6 (unclosed
  • ) parsertest still at 292/303 :o) --- RELEASE-NOTES | 1 + includes/Sanitizer.php | 3 +++ 2 files changed, 4 insertions(+) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 4c6cf3e7a8..82a34f9a67 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -115,6 +115,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN This sort of special casing should be removed and fixed properly. * Remove useless whitespace from Special:Brokenredirects header * Treat "allmessagesnotsupporteddb" as wikitext when echoing; change default text +* (bug 5497) regeression in HTML normalization in 1.6 (unclosed
  • ,
    ,
    ) == Compatibility == diff --git a/includes/Sanitizer.php b/includes/Sanitizer.php index ca6f164313..21ea4d9842 100644 --- a/includes/Sanitizer.php +++ b/includes/Sanitizer.php @@ -404,6 +404,9 @@ class Sanitizer { } elseif( in_array( $t, $htmlsingleonly ) ) { # Hack to force empty tag for uncloseable elements $brace = '/>'; + } else if( in_array( $t, $htmlsingle ) ) { + # Hack to not close $htmlsingle tags + $brace = NULL; } else { if ( $t == 'table' ) { array_push( $tablestack, $tagstack ); -- 2.20.1