From: Brion Vibber Date: Fri, 4 Nov 2005 05:30:55 +0000 (+0000) Subject: (bug 3787) Don't replace variables and sigs in comments X-Git-Tag: 1.6.0~1222 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/exercices/bilan.php?a=commitdiff_plain;h=3e1e177d9af20d59be2c5072c408eb496f0cfee9;p=lhc%2Fweb%2Fwiklou.git (bug 3787) Don't replace variables and sigs in comments --- diff --git a/RELEASE-NOTES b/RELEASE-NOTES index cb74739df6..9e19c0fc5f 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -204,6 +204,8 @@ fully support the editing toolbar, but was found to be too confusing. * (bug 918) Search index incorrectly joined words at == headings == * (bug 3877) Render math images into temp directory, then move to hashed subdir so you can render new math images and have them work +* (bug 3797) Don't expand variables and sigs in comments + === Caveats === diff --git a/includes/Parser.php b/includes/Parser.php index a39ff5ee7f..6228154b08 100644 --- a/includes/Parser.php +++ b/includes/Parser.php @@ -3052,7 +3052,7 @@ class Parser "\r\n" => "\n", ); $text = str_replace( array_keys( $pairs ), array_values( $pairs ), $text ); - $text = $this->strip( $text, $stripState, false ); + $text = $this->strip( $text, $stripState, true ); $text = $this->pstPass2( $text, $user ); $text = $this->unstrip( $text, $stripState ); $text = $this->unstripNoWiki( $text, $stripState );