From 1bf23fabc6838c79bd7a95b6c97661e16504e57d Mon Sep 17 00:00:00 2001 From: ed Date: Thu, 7 Aug 2025 20:59:41 +0000 Subject: [PATCH] unames: fix shares --- copyparty/httpcli.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/copyparty/httpcli.py b/copyparty/httpcli.py index 73af0df7..402d623f 100644 --- a/copyparty/httpcli.py +++ b/copyparty/httpcli.py @@ -2959,9 +2959,11 @@ class HttpCli(object): def handle_login(self) -> bool: assert self.parser # !rm - if self.args.usernames: + if self.args.usernames and not ( + self.args.shr and self.vpath.startswith(self.args.shr1) + ): try: - un = self.parser.require("uname", 256) + un = self.parser.require("uname", 64) except: un = "" else: