mirror of
https://github.com/9001/copyparty.git
synced 2026-08-13 13:53:06 -06:00
mkdir: translit illegals instead of failing
This commit is contained in:
parent
9912a95166
commit
75c7502c34
|
|
@ -3739,7 +3739,7 @@ class HttpCli(object):
|
|||
def _mkdir(self, vpath: str, dav: bool = False) -> bool:
|
||||
nullwrite = self.args.nw
|
||||
self.gctx = vpath
|
||||
vpath = undot(vpath)
|
||||
vpath = sanitize_vpath(undot(vpath))
|
||||
vfs, rem = self.asrv.vfs.get(vpath, self.uname, False, True)
|
||||
if "nosub" in vfs.flags:
|
||||
raise Pebkac(403, "mkdir is forbidden below this folder")
|
||||
|
|
|
|||
Loading…
Reference in a new issue