« Previous | Next » 

Revision ffe140fc

Parent 90c030c7
Child df960509

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