From: Raimond Spekking Date: Mon, 3 Nov 2008 22:11:06 +0000 (+0000) Subject: Trim the final extension to avoid a confusing warning like X-Git-Tag: 1.31.0-rc.0~44443 X-Git-Url: http://git.cyclocoop.org/%27.parametre_url%28%20%20%20generer_action_auteur%28%27charger_plugin%27%2C%20%27update_flux%27%29%2C%27update_flux%27%2C%20%27oui%27%29.%27?a=commitdiff_plain;h=eeebbdbb0c818a727100092b765c49b0139dbb06;p=lhc%2Fweb%2Fwiklou.git Trim the final extension to avoid a confusing warning like "*.jpg " is not a permitted file type --- diff --git a/includes/specials/SpecialUpload.php b/includes/specials/SpecialUpload.php index a61462d269..51b11df5bc 100644 --- a/includes/specials/SpecialUpload.php +++ b/includes/specials/SpecialUpload.php @@ -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 = ''; }