Adding debugging for bug 62241
authorkaldari <rkaldari@wikimedia.org>
Mon, 31 Mar 2014 20:50:03 +0000 (13:50 -0700)
committerKaldari <rkaldari@wikimedia.org>
Mon, 31 Mar 2014 21:04:43 +0000 (21:04 +0000)
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

index d4be08c..b14a284 100644 (file)
@@ -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