mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2024-08-30 18:23:09 +00:00
Fix windows file pathing
This commit is contained in:
parent
ace79cad2f
commit
aa44650a05
@ -223,6 +223,8 @@ class FileHandler(BaseHandler):
|
|||||||
self.redirect("/panel/error?error=Unauthorized access to Files")
|
self.redirect("/panel/error?error=Unauthorized access to Files")
|
||||||
return
|
return
|
||||||
path = Helpers.get_os_understandable_path(self.get_argument("path", None))
|
path = Helpers.get_os_understandable_path(self.get_argument("path", None))
|
||||||
|
if Helpers.is_os_windows():
|
||||||
|
path = Helpers.wtol_path(path)
|
||||||
Helpers.unzip_file(path)
|
Helpers.unzip_file(path)
|
||||||
self.redirect(f"/panel/server_detail?id={server_id}&subpage=files")
|
self.redirect(f"/panel/server_detail?id={server_id}&subpage=files")
|
||||||
return
|
return
|
||||||
|
Loading…
Reference in New Issue
Block a user