From aff98a5b78cd9a83150e537b3aa3b85add736492 Mon Sep 17 00:00:00 2001 From: NewSoupVi <57900059+NewSoupVi@users.noreply.github.com> Date: Mon, 13 Oct 2025 18:55:44 +0200 Subject: [PATCH] CommonClient: Fix manually connecting to a url when the username or password has a space in it (#5528) * CommonClient: Fix manually connecting to a url when the username or password has a space in it * Update CommonClient.py * Update CommonClient.py --- CommonClient.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CommonClient.py b/CommonClient.py index b1d9aeb1..41cc08d1 100644 --- a/CommonClient.py +++ b/CommonClient.py @@ -856,9 +856,9 @@ async def server_loop(ctx: CommonContext, address: typing.Optional[str] = None) server_url = urllib.parse.urlparse(address) if server_url.username: - ctx.username = server_url.username + ctx.username = urllib.parse.unquote(server_url.username) if server_url.password: - ctx.password = server_url.password + ctx.password = urllib.parse.unquote(server_url.password) def reconnect_hint() -> str: return ", type /connect to reconnect" if ctx.server_address else ""