« Previous | Next » 

Revision 2f964c90

ID2f964c90a7714a05d05efc534a2042e144949e58
Parent c2562a16
Child 1de186cf

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