https://bugzilla.wikimedia.org/show_bug.cgi?id=29512
Web browser: ---
Bug #: 29512
Summary: UploadStash extension weirdness
Product: MediaWiki
Version: 1.19-svn
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: Uploading
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected]
Classification: Unclassified
UploadStash::stashFile() wants files with extensions, so it calls
getExtensionForPath(), which uses $magic->guessMimeType(), thaat returns
unknown/unknown and getExtensionsForType() gives the empty string, which is
appended as extension to the filename.
While we are at it, rename() should probably be inside wfSupressErrors(), and
it doesn't seem too logical to set $magic = MimeMagic::singleton(); at line 215
and not use $magic at 217
--
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l