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

Brad Jorsch <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]
          Component|API                         |File management

--- Comment #12 from Brad Jorsch <[email protected]> 2012-10-24 
04:07:53 UTC ---
This isn't really an API bug, as it happens via Special:Upload as well. The
root cause is that wfStripIllegalFilenameChars explicitly strips anything up to
and including the last "/" character.

But I'm not entirely sure this is a bug at all, rather than a case of "slashes
are not allowed in filenames". If anything I suppose it could be changed to
treat slashes as it does other characters (which would result in a filename of
"Gerald Ford Papers- Final Issues for Decision, Army Corps of Engineers-
12-4-74(Gerald Ford Library)(1554461).png" for the example here), but before
changing behavior that goes back in one form or another to at least *2003*[1]
I'd want to get input from people more familiar with the file handling code.


[1]
https://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/includes/specials/SpecialUpload.php?revision=1284&view=markup#l52

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