BUG#925 Fix canonized_headline for e.g. <math>
authorJens Frank <jeluf@users.mediawiki.org>
Sat, 22 Jan 2005 09:13:02 +0000 (09:13 +0000)
committerJens Frank <jeluf@users.mediawiki.org>
Sat, 22 Jan 2005 09:13:02 +0000 (09:13 +0000)
includes/Parser.php

index 3898154..08d9152 100644 (file)
@@ -2531,7 +2531,7 @@ class Parser
                        # The canonized header is a version of the header text safe to use for links
                        # Avoid insertion of weird stuff like <math> by expanding the relevant sections
                        $canonized_headline = $this->unstrip( $headline, $this->mStripState );
-                       $canonized_headline = $this->unstripNoWiki( $headline, $this->mStripState );
+                       $canonized_headline = $this->unstripNoWiki( $canonized_headline, $this->mStripState );
 
                        # Remove link placeholders by the link text.
                        #     <!--LINK number-->