(bug 3787) Don't replace variables and sigs in comments
authorBrion Vibber <brion@users.mediawiki.org>
Fri, 4 Nov 2005 05:30:55 +0000 (05:30 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Fri, 4 Nov 2005 05:30:55 +0000 (05:30 +0000)
RELEASE-NOTES
includes/Parser.php

index cb74739..9e19c0f 100644 (file)
@@ -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 ===
 
index a39ff5e..6228154 100644 (file)
@@ -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 );