From: kaldari Date: Mon, 31 Mar 2014 20:50:03 +0000 (-0700) Subject: Adding debugging for bug 62241 X-Git-Tag: 1.31.0-rc.0~16398^2 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_ecrire%28%22brouteur%22%2C%28%24id_rubrique%20?a=commitdiff_plain;h=0fb104497c79b58d48a9414096f4acd654df550c;p=lhc%2Fweb%2Fwiklou.git 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 --- 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