From: Antoine Musso Date: Wed, 17 Jan 2007 22:06:32 +0000 (+0000) Subject: Ignore self closing on closing tags ( '' now gives '') X-Git-Tag: 1.31.0-rc.0~54330 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/operations/recherche.php?a=commitdiff_plain;h=0692f639bc3e33ac56670e8b6d27fb2c46e12292;p=lhc%2Fweb%2Fwiklou.git Ignore self closing on closing tags ( '' now gives '') Fix parsertest "Don't fall for the self-closing div" --- diff --git a/RELEASE-NOTES b/RELEASE-NOTES index a7a481eb4f..738606c0a2 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -116,6 +116,7 @@ lighter making things easier to read. * parserTests.php : removed the 'light' option for --color argument, replacing it with a new global switch : $wgCommandLineDarkBg * Sanitizer now correctly escapes lonely '>' occuring before the first wikitag. +* Ignore self closing on closing tags ( '' now gives '') == Languages updated == diff --git a/includes/Sanitizer.php b/includes/Sanitizer.php index ebe9d5a80a..73d723efec 100644 --- a/includes/Sanitizer.php +++ b/includes/Sanitizer.php @@ -476,7 +476,7 @@ class Sanitizer { } if ( ! $badtag ) { $rest = str_replace( '>', '>', $rest ); - $close = ( $brace == '/>' ) ? ' /' : ''; + $close = ( $brace == '/>' && !$slash ) ? ' /' : ''; $text .= "<$slash$t$newparams$close>$rest"; continue; }