« Previous | Next » 

Revision 6a9a39f6

ID6a9a39f648e9a0317b0424d0244f28aa60eab2e1
Parent a53ec697
Child 8b7f5e44

Added by Dmitri Pisarev over 7 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

  • added
  • modified
  • copied
  • renamed
  • deleted