mkdir: translit illegals instead of failing

This commit is contained in:
ed 2026-07-27 21:25:21 +00:00
parent 9912a95166
commit 75c7502c34

View file

@ -3739,7 +3739,7 @@ class HttpCli(object):
def _mkdir(self, vpath: str, dav: bool = False) -> bool: def _mkdir(self, vpath: str, dav: bool = False) -> bool:
nullwrite = self.args.nw nullwrite = self.args.nw
self.gctx = vpath self.gctx = vpath
vpath = undot(vpath) vpath = sanitize_vpath(undot(vpath))
vfs, rem = self.asrv.vfs.get(vpath, self.uname, False, True) vfs, rem = self.asrv.vfs.get(vpath, self.uname, False, True)
if "nosub" in vfs.flags: if "nosub" in vfs.flags:
raise Pebkac(403, "mkdir is forbidden below this folder") raise Pebkac(403, "mkdir is forbidden below this folder")