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

       Web browser: ---
             Bug #: 38221
           Summary: Protected function UploadBase->validateName should be
                    public
           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: ---


When uploading a file using the UploadBase.php class, the getTitle() function
will return the title of the uploaded file or null if the title is invalid for
some reason. However, to figure out why the title is invalid, you have to
access the member variable mTitleError or call the function validateName().
Both are protected though so they can't be called by external classes.

The easiest fix would be to make validateName() public instead of protected.

-- 
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