瀏覽代碼

Don't strip {} in get method

If someone uploads a file that starts or ends with the chars {}, all REPORT requests on that collection will fail and it's impossible to delete the file.
Unrud 9 年之前
父節點
當前提交
03fbb1e68e
共有 1 個文件被更改,包括 0 次插入1 次删除
  1. 0 1
      radicale/storage.py

+ 0 - 1
radicale/storage.py

@@ -618,7 +618,6 @@ class Collection(BaseCollection):
     def get(self, href):
         if not href:
             return None
-        href = href.strip("{}")
         if not is_safe_filesystem_path_component(href):
             self.logger.debug(
                 "Can't translate name safely to filesystem: %s", href)