Last modified: 2011-08-01 00:09:30 UTC
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
Giving this to Bryan since he does a lot more UploadStash than Neil, I think. (Bryan, feel free to give this to wikibugs-l if you don't want it.)
(In reply to comment #1) > Giving this to Bryan since he does a lot more UploadStash than Neil, I think. > (Bryan, feel free to give this to wikibugs-l if you don't want it.) He may have fixed some bugs recently but I wrote it ;)