From 93b85a43d39167c43c2f0326498e13dc6d297fbb Mon Sep 17 00:00:00 2001 From: Antoine Musso Date: Wed, 7 Apr 2004 13:44:14 +0000 Subject: [PATCH] Fix a bug I closed without checking and I cant find right now :( Basicly creating an internal link with a 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 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/includes/Parser.php b/includes/Parser.php index 585e31447c..4ac8a2dc91 100644 --- a/includes/Parser.php +++ b/includes/Parser.php @@ -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) { -- 2.20.1