From 45432053e82145707870ed54405b93cef5832fde Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Thu, 12 Oct 2006 01:07:01 +0000 Subject: [PATCH] * (bug 6164) Avoid smashing Cite state if message transformation triggers during bad image list check, by skipping message transformation. This isn't a good permanent fix. --- RELEASE-NOTES | 5 ++++- includes/ImageFunctions.php | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index a13bf96bdd..aa937918a1 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -36,7 +36,10 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN * Disable PHP exception backtrace printing unless $wgShowExceptionDetails is set. Backtraces may contain sensitive information in function call parameters. - +* (bug 6164) Avoid smashing Cite state if message transformation triggers + during bad image list check, by skipping message transformation. + This isn't a good permanent fix. + == Languages updated == diff --git a/includes/ImageFunctions.php b/includes/ImageFunctions.php index d182d527ab..75755588ac 100644 --- a/includes/ImageFunctions.php +++ b/includes/ImageFunctions.php @@ -198,7 +198,7 @@ function wfIsBadImage( $name, $contextTitle = false ) { if( !$badImages ) { # Build the list now $badImages = array(); - $lines = explode( "\n", wfMsgForContent( 'bad_image_list' ) ); + $lines = explode( "\n", wfMsgForContentNoTrans( 'bad_image_list' ) ); foreach( $lines as $line ) { # List items only if ( substr( $line, 0, 1 ) !== '*' ) { -- 2.20.1