If the file has been downloaded for example by feeds the filename will be urlencoded. This can cause things like spaces in filename in form of '%20' to be transliterated to 20. This patch adds encoding of the filename before it is handled any further.

Comments

chris matthews’s picture

Version: 7.x-3.1 » 7.x-3.x-dev
Issue summary: View changes
Status: Needs review » Needs work
Issue tags: +Needs reroll, +Needs rework

The patch does not apply to the latest 7.x-3.x dev snapshot and is probably too old to reroll, but I went ahead and tagged the issue accordingly.

Checking patch transliteration.module...
error: while searching for:
    return $filename;
  }
  $filename = transliteration_get($filename, '', $source_langcode);
  // Replace whitespace.
  $filename = str_replace(' ', '_', $filename);
  // Remove remaining unsafe characters.

error: patch failed: transliteration.module:103
error: transliteration.module: patch does not apply