Last modified: 2014-09-24 00:07:25 UTC
The upload interface will only accept files compliant with wgFileExtensions *even* if wgCheckFileExtensions is set to false. The problem is in the file: /skins/common/upload.js My suggested fix is to make wgCheckFileExtensions a "<script> global" in includes/Skin.php or similar and then check it's value before doing the actual file extension checking in upload.js My System: Ubuntu 10.04 x64 Mediawiki 1.16wmf4 (r66440) PHP 5.3.2-1ubuntu4.1 (apache2handler) MySQL 5.1.41-3ubuntu12
Created attachment 7383 [details] Proposed Patch
*** Bug 24731 has been marked as a duplicate of this bug. ***
Hmm, perhaps it should just not export $wgFileExtensions if $wgCheckFileExtensions is off?
*Bulk BZ Change: +Patch to open bugs with patches attached that are missing the keyword*
Per Brion's suggestion in comment 3 I'm adding the "reviewed" keyword. Thank you for the patch, Sean! If you have time, please do consider revising your patch for us; if you'd like tips on approach, please talk with us in #mediawiki on freenode IRC, or on https://lists.wikimedia.org/mailman/listinfo/wikitech-l . Thanks again.