Last modified: 2014-09-24 00:07:25 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 23583 - Special:Upload JS does not consider wgCheckFileExtensions
Special:Upload JS does not consider wgCheckFileExtensions
Status: NEW
Product: MediaWiki
Classification: Unclassified
Uploading (Other open bugs)
Other All
: Low minor (vote)
: ---
Assigned To: Nobody - You can work on this!
: patch, patch-reviewed
: 24731 (view as bug list)
Depends on: 24217
Blocks: 24731
  Show dependency treegraph
Reported: 2010-05-18 15:41 UTC by Sean Turley
Modified: 2014-09-24 00:07 UTC (History)
4 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---

Proposed Patch (1.55 KB, patch)
2010-05-18 16:10 UTC, Sean Turley

Description Sean Turley 2010-05-18 15:41:06 UTC
The upload interface will only accept files compliant with wgFileExtensions *even* if wgCheckFileExtensions is set to false. The problem is in the file:


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
Comment 1 Sean Turley 2010-05-18 16:10:21 UTC
Created attachment 7383 [details]
Proposed Patch
Comment 2 Brion Vibber 2011-01-02 20:48:05 UTC
*** Bug 24731 has been marked as a duplicate of this bug. ***
Comment 3 Brion Vibber 2011-01-02 20:49:36 UTC
Hmm, perhaps it should just not export $wgFileExtensions if $wgCheckFileExtensions is off?
Comment 4 p858snake 2011-04-30 00:09:59 UTC
*Bulk BZ Change: +Patch to open bugs with patches attached that are missing the keyword*
Comment 5 Sumana Harihareswara 2011-11-10 03:09:39 UTC
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 .  Thanks again.

Note You need to log in before you can comment on or make changes to this bug.