https://bugzilla.wikimedia.org/show_bug.cgi?id=24923

           Summary: Uploads fail with !$wgStrictFileExtensions and
                    non-preferred extension
           Product: MediaWiki
           Version: 1.16
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: patch
          Severity: normal
          Priority: Normal
         Component: Uploading
        AssignedTo: wikibugs-l@lists.wikimedia.org
        ReportedBy: mack...@gmail.com
                CC: gpaum...@wikimedia.org, bryan.tongm...@gmail.com


STEPS

1. Set $wgCheckFileExtensions to true (the default is already true).
2. Set $wgStrictFileExtensions to false (the default is true).
3. Make sure $wgFileExtensions is not empty (by default it's not empty)
4. Attempt to upload a file with an extension not in the preferred
$wgFileExtensions list (and not blacklisted) such as "foo.xyz" for example.

RESULT

The upload form does not accept any files with extensions other than those in
the $wgFileExtensions array.

EXPECTED

When $wgStrictFileExtensions is set to false, all uploads that are not
blacklisted should be accepted.

VERSIONS

Affects 1.16 release.  The trunk version also appears to be affected.

Patches are attached for both REL1_16 and trunk.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to