Hi

I don't know if this something Transliteration should handle, but I recently ran into a problem with a FTP server that did not list or transfer any files that had 2 consecutive periods in the filename.

EG: myfile..jpg

REF:
http://trac.filezilla-project.org/ticket/4211

UPDATE: 2011/10/06
Since #973926: Filename transliteration: Maximum one consecutive separator character shall appear in filename after the manipulations was marked as duplicate of this issue here, I'm copy-pasting its summary here as well...

When using the transliteration function for renaming files in the upload process, at most one consecutive separator character shall appear in filename after the manipulations such as omitting punctation or stopwords.

Original: Aaa + bb & cc @ dd • ee.txt
Result: aaa__bb__cc__dd__ee.txt
Expected: aaa_bb_cc_dd_ee.txt

Comments

smk-ka’s picture

Title: filenames with two consecutive periods » Remove multiple consecutive non-alphabetical characters
Version: 6.x-2.1 » 6.x-3.x-dev

The referenced issue has been found to be a bug with the used software. However, I've also seen multiple consecutive non-alphabetical characters like underscores etc. after cleaning the filename. There should at least be an option to normalize those. Something like preg_replace('/(_)_+|(\.)\.+|(-)-+/', '\\1\\2\\3', $filename); should do the trick.

klonos’s picture

...subscribing.

klonos’s picture

Issue summary: View changes

Since #973926: Filename transliteration: Maximum one consecutive separator character shall appear in filename after the manipulations was marked as duplicate of this issue here, I'm copy-pasting its summary here as well...

amateescu’s picture

Version: 6.x-3.x-dev » 7.x-3.x-dev
Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Anonymous’s picture

Issue summary: View changes

Reformat issue summary update