Fix a bug I closed without checking and I cant find right now :(
authorAntoine Musso <hashar@users.mediawiki.org>
Wed, 7 Apr 2004 13:44:14 +0000 (13:44 +0000)
committerAntoine Musso <hashar@users.mediawiki.org>
Wed, 7 Apr 2004 13:44:14 +0000 (13:44 +0000)
Basicly creating an internal link with a <nowiki> thing generate bad link in the database (using a NaodW29). I used the unstrip function of parser.php to remove that from the text before it is send to the internal link handler. Seems to fix things quite well

includes/Parser.php

index 585e314..4ac8a2d 100644 (file)
@@ -675,7 +675,8 @@ class Parser
                                                        $nextToken = $tokenizer->nextToken();
                                                        $txt .= $nextToken["text"];
                                                }
-                                               $txt = $this->handleInternalLink( $txt, $prefix );
+                                               $fakestate = $this->mStripState;
+                                               $txt = $this->handleInternalLink( $this->unstrip($txt,$fakestate), $prefix );
 
                                                # did the tag start with 3 [ ?                                          
                                                if($threeopen) {