From 3e1e177d9af20d59be2c5072c408eb496f0cfee9 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Fri, 4 Nov 2005 05:30:55 +0000 Subject: [PATCH] (bug 3787) Don't replace variables and sigs in comments --- RELEASE-NOTES | 2 ++ includes/Parser.php | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) 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 ); -- 2.20.1