mirror of
https://github.com/Kozea/Radicale.git
synced 2025-06-26 16:45:52 +00:00
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.
This commit is contained in:
parent
6df54bf88a
commit
03fbb1e68e
1 changed files with 0 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue