From: Brion Vibber Date: Tue, 26 Jul 2005 15:26:33 +0000 (+0000) Subject: * Fix typo in undefined array index access prevention X-Git-Tag: 1.5.0beta4~21 X-Git-Url: http://git.cyclocoop.org/?a=commitdiff_plain;h=c0a4dfc06048513d0aaa9486546413be86e17cb3;p=lhc%2Fweb%2Fwiklou.git * Fix typo in undefined array index access prevention --- diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 18182a160b..d84d370344 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -611,6 +611,7 @@ of MediaWiki:Newpagetext) to &action=edit, if page is new. * Removed useless protectreason message * Spelling fix: $wgUrlProtcols -> $wgUrlProtocols * Switch Moldovan local name to cyrillic +* Fix typo in undefined array index access prevention === Caveats === diff --git a/includes/Parser.php b/includes/Parser.php index 60627967c7..bd8c912f67 100644 --- a/includes/Parser.php +++ b/includes/Parser.php @@ -297,7 +297,7 @@ class Parser $q = preg_split( $end, $inside, 2 ); $content[$marker] = $q[0]; - if( count( $q ) < 1 ) { + if( count( $q ) < 2 ) { # No end tag -- let it run out to the end of the text. break; } else {