From: Antoine Musso Date: Wed, 7 Apr 2004 13:44:14 +0000 (+0000) Subject: Fix a bug I closed without checking and I cant find right now :( X-Git-Tag: 1.3.0beta1~571 X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dmembres/cotisations/rappels.php?a=commitdiff_plain;h=93b85a43d39167c43c2f0326498e13dc6d297fbb;p=lhc%2Fweb%2Fwiklou.git 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 --- 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) {