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

            Bug ID: 71704
           Summary: trim trailing dots/whitespace in filename
           Product: MediaWiki extensions
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: trivial
          Priority: Unprioritized
         Component: UploadWizard
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected], [email protected],
                    [email protected], [email protected],
                    [email protected]
       Web browser: ---
   Mobile Platform: ---

It happens that users enter a filename ending with a dot (e.g.
https://commons.wikimedia.org/wiki/File:Der_Extra-Fuss_bei_Rubens..jpg) and the
Upload Wizard adds the extension (e.g. .jpg) with jet another dot. This will
end up in file names containing two consecutive dots (e.g.
Der_Extra-Fuss_bei_Rubens..jpg). As this does not make much sense, and is not
intended (as I assume), the UW should trim trailing dots before appending the
extension.

Same for trailing whitespaces in filenames. I do not find an example right now,
but it is in my mind that I have seen filenames differing only in a space
before the extension, like 'x.jpg' and 'x .jpg'. Which is quite ugly. Can you
please check if that is still the case.

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