jenkins-bot has submitted this change and it was merged.

Change subject: Temp log #3 for T124356
......................................................................


Temp log #3 for T124356

Change-Id: I0d2c90b0ae94a5cfe4782776f1cca3449f86be1e
---
M includes/parser/ParserCache.php
M includes/parser/ParserOutput.php
2 files changed, 6 insertions(+), 0 deletions(-)

Approvals:
  Tim Starling: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/includes/parser/ParserCache.php b/includes/parser/ParserCache.php
index 0eba166..9ebdbb5 100644
--- a/includes/parser/ParserCache.php
+++ b/includes/parser/ParserCache.php
@@ -258,6 +258,11 @@
        public function save( $parserOutput, $page, $popts, $cacheTime = null, 
$revId = null ) {
                $expire = $parserOutput->getCacheExpiry();
                if ( $expire > 0 ) {
+                       if ( strpos( $parserOutput->mText, 'href="#/editor/1"' 
) !== false ) {
+                               wfDebugLog( 'temp-debug', 'MF pollution: 
getText called from: ' . (
+                                       isset( 
$parserOutput->debug_gettext_trace ) ?
+                                       $parserOutput->debug_gettext_trace : 
'nowhere' ) );
+                       }
                        $cacheTime = $cacheTime ?: wfTimestampNow();
                        if ( !$revId ) {
                                $revision = $page->getRevision();
diff --git a/includes/parser/ParserOutput.php b/includes/parser/ParserOutput.php
index e4c287a..75eea36 100644
--- a/includes/parser/ParserOutput.php
+++ b/includes/parser/ParserOutput.php
@@ -221,6 +221,7 @@
        }
 
        public function getText() {
+               $this->debug_gettext_trace = wfGetAllCallers( false );
                $text = $this->mText;
                if ( $this->mEditSectionTokens ) {
                        $text = preg_replace_callback(

-- 
To view, visit https://gerrit.wikimedia.org/r/266184
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I0d2c90b0ae94a5cfe4782776f1cca3449f86be1e
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: wmf/1.27.0-wmf.10
Gerrit-Owner: Tim Starling <tstarl...@wikimedia.org>
Gerrit-Reviewer: Cscott <canan...@wikimedia.org>
Gerrit-Reviewer: Jackmcbarn <jackmcb...@gmail.com>
Gerrit-Reviewer: Tim Starling <tstarl...@wikimedia.org>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to