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

       Web browser: ---
             Bug #: 38222
           Summary: UploadBase::checkWarnings could throw exception on
                    null object access
           Product: MediaWiki
           Version: 1.20-git
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: Uploading
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]
    Classification: Unclassified
   Mobile Platform: ---


The function checkWarnings() in UploadBase.php calls:

    $localFile = $this->getLocalFile();
    $filename = $localFile->getName();

But getLocalFile() will return null if the title of the upload is invalid for
some reason (like it contains a blacklisted extension). This can cause an
exception to be thrown. There should be a null check in there.

-- 
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
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to