Last modified: 2010-05-15 15:54:52 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 14220 - $wgCheckFileExtensions doesn't seem to work
$wgCheckFileExtensions doesn't seem to work
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Uploading (Other open bugs)
1.12.x
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
http://www.mediawiki.org/wiki/Manual:...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-05-22 07:17 UTC by Florian Dufour
Modified: 2010-05-15 15:54 UTC (History)
0 users

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


Attachments

Description Florian Dufour 2008-05-22 07:17:11 UTC
Hi,

I'm using Mediawiki 1.12.0. In LocalSettings.php, I set $wgCheckFileExtensions to false and I didn't update $wgFileExtensions (using default parameters).

However, even with $wgCheckFileExtensions set to false, I'm not able to upload a PDF file (for example). Of course, if I add 'pdf' on $wgFileExtensions array, it works as expected.

What I would expect : when $wgCheckFileExtensions is set to false, no extension checking should take place.

This bug is also described in the manual page (http://www.mediawiki.org/wiki/Manual:%24wgCheckFileExtensions) but doesn't seem to be filed in Bugzilla.

* Special:Version 

  MediaWiki   1.12.0 (r32735)
  PHP         5.2.6-pl1-gentoo (apache2handler)
  MySQL       5.0.54

Cheers,

Florian
Comment 1 Brion Vibber 2008-05-22 18:35:30 UTC
Fixed in r35195

The final upload check was checking $wgStrictFileExtensions only, which shouldn't apply when $wgCheckFileExtensions is disabled.

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


Navigation
Links