Page MenuHomePhabricator

trim trailing dots/whitespace in filename
Closed, ResolvedPublic

Description

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.


Version: unspecified
Severity: enhancement

Details

Reference
bz71704