Replace whitespace and brackets in export backup filename

XMLWordPrintable

    • High
    • None
    • When creating backup zips of translate5 task whites space square and normal brackets are now also replaced in the filename to a hyphen character. Multiple hyphens are condensed to a single hyphen.
    • None

      problem

      When saving the tasks with the Workflow Action deleteOldEndedTasks the taskname can be used as parameter in the target filename for the backup file.

      Currently several special chars #%&{}\\<>*?/$!\'":@+`|= in the filename are already escaped. What is missing is the white space and square and normal brackets.

      solution

      Replace them also with - character (hyphen). Final list is:

      #%&{}\\<>*?/$!\'":@+`|= ()[]
      

      Multiple - characters are replaced then to a single one.

            Assignee:
            Thomas Lauria
            Reporter:
            Thomas Lauria
            None
            None
            Volodymyr Kyianenko (Inactive)
            None
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              None
              None