Last modified: 2010-05-15 15:54:52 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T16220, the corresponding Phabricator task for complete and up-to-date bug report information.
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