From 0fb104497c79b58d48a9414096f4acd654df550c Mon Sep 17 00:00:00 2001 From: kaldari Date: Mon, 31 Mar 2014 13:50:03 -0700 Subject: [PATCH] Adding debugging for bug 62241 In the event of a bad filename warning record the relavent variables so that we can figure out what is causing the failure. See also change I532f8ee7c7455e43862b0204a7fff23d6792412e Bug: 62241 Change-Id: If5d8b9e7f34c0f9bd09684d7dada8fafd7f5f7c2 --- includes/upload/UploadBase.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/includes/upload/UploadBase.php b/includes/upload/UploadBase.php index d4be08ccdb..b14a284d43 100644 --- a/includes/upload/UploadBase.php +++ b/includes/upload/UploadBase.php @@ -613,6 +613,8 @@ abstract class UploadBase { if ( $this->mDesiredDestName != $filename && $comparableName != $filename ) { $warnings['badfilename'] = $filename; + // Debugging for bug 62241 + wfDebugLog( 'upload', "Filename: '$filename', mDesiredDestName: '$this->mDesiredDestName', comparableName: '$comparableName'" ); } // Check whether the file extension is on the unwanted list -- 2.20.1