mirror of
https://github.com/9001/copyparty.git
synced 2026-11-27 15:51:13 +00:00
mkdir: translit illegals instead of failing
This commit is contained in:
1 parent
9912a95166
commit
75c7502c34
1 file changed
+1
-1
@@ -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")
|
||||
|
||||
Reference in new issue
Block a user