浏览代码

avoid colon character in deleted file_name from webdav

Guénaël Muller 6 年前
父节点
当前提交
3589eb1ac8
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      tracim/tracim/lib/webdav/sql_resources.py

+ 1 - 1
tracim/tracim/lib/webdav/sql_resources.py 查看文件

@@ -89,7 +89,7 @@ class ManageActions(object):
89 89
             new_name = re.sub(r'(\.[^.]+)$', '', new_name)
90 90
 
91 91
         if self._type in [ActionDescription.ARCHIVING, ActionDescription.DELETION]:
92
-            new_name += ' - %s the %s' % (self._to_name[self._type], datetime.now().strftime('%d-%m-%Y at %H:%M'))
92
+            new_name += ' - %s the %s' % (self._to_name[self._type], datetime.now().strftime('%d-%m-%Y at %H_%M'))
93 93
         else:
94 94
             new_name = re.sub(
95 95
                 r'( - (%s|%s) the .*)$' % (self._to_name[ActionDescription.DELETION], self._to_name[ActionDescription.ARCHIVING]),