« Previous | Next » 

Revision a6876486

Parent f69d7163
Child b39c8c5a

Added by Dmitri Pisarev over 6 years ago

[BUGFIX] Make rewriteFilenameForUri handle non-ASCII names correctly

When the filename consists completely of non-ASCII characters,
the ``rewriteFilenameForUri`` would substitute it with empty filename
like ".jpg", resulting in a broken resource link.

This change makes ``rewriteFilenameForUri`` accept unicode character.
In addition it checks if the filename is empty after the rewrite and
names it "unnamed.<fileExtension>" if needed.

Change-Id: Idf5b92e7871fda852da136362d57f8a5fb568708
Fixes: FLOW-99
Releases: master, 2.1, 2.2, 2.3

  • added
  • modified
  • copied
  • renamed
  • deleted