app: Don't replace "+" with a space char when deleting a file
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
parent
f9fc679831
commit
223c125106
|
@ -329,7 +329,7 @@ class FileRequestHandler(AuthorizedFileHandler):
|
||||||
|
|
||||||
async def delete(self, path):
|
async def delete(self, path):
|
||||||
path = self.request.path.lstrip("/").split("/", 2)[-1]
|
path = self.request.path.lstrip("/").split("/", 2)[-1]
|
||||||
path = url_unescape(path)
|
path = url_unescape(path, plus=False)
|
||||||
file_manager = self.server.lookup_plugin('file_manager')
|
file_manager = self.server.lookup_plugin('file_manager')
|
||||||
try:
|
try:
|
||||||
filename = await file_manager.delete_file(path)
|
filename = await file_manager.delete_file(path)
|
||||||
|
|
Loading…
Reference in New Issue