* Fix typo in undefined array index access prevention
authorBrion Vibber <brion@users.mediawiki.org>
Tue, 26 Jul 2005 15:26:33 +0000 (15:26 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Tue, 26 Jul 2005 15:26:33 +0000 (15:26 +0000)
RELEASE-NOTES
includes/Parser.php

index 18182a1..d84d370 100644 (file)
@@ -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 ===
index 6062796..bd8c912 100644 (file)
@@ -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 {