Trim the final extension to avoid a confusing warning like
authorRaimond Spekking <raymond@users.mediawiki.org>
Mon, 3 Nov 2008 22:11:06 +0000 (22:11 +0000)
committerRaimond Spekking <raymond@users.mediawiki.org>
Mon, 3 Nov 2008 22:11:06 +0000 (22:11 +0000)
  "*.jpg " is not a permitted file type

includes/specials/SpecialUpload.php

index a61462d..51b11df 100644 (file)
@@ -407,7 +407,7 @@ class UploadForm {
                list( $partname, $ext ) = $this->splitExtensions( $filtered );
 
                if( count( $ext ) ) {
-                       $finalExt = $ext[count( $ext ) - 1];
+                       $finalExt = trim( $ext[count( $ext ) - 1] );
                } else {
                        $finalExt = '';
                }