Fix regression with unclosed extension tags.
authorBrion Vibber <brion@users.mediawiki.org>
Thu, 1 Jun 2006 08:24:22 +0000 (08:24 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Thu, 1 Jun 2006 08:24:22 +0000 (08:24 +0000)
Behavior is still silly (PST adds an end tag) but matches prior behavior until fix is made.

includes/Parser.php

index 2bfa482..9ff3e85 100644 (file)
@@ -376,7 +376,7 @@ class Parser
                                $content = $q[0];
                                if( count( $q ) < 2 ) {
                                        # No end tag -- let it run out to the end of the text.
-                                       break;
+                                       $text = '';
                                } else {
                                        $text = $q[1];
                                }