From bb9ca7f418a9ec84f5ca7c5061cb88c8dbe90c4f Mon Sep 17 00:00:00 2001 From: brvphoenix Date: Sat, 3 Apr 2021 19:23:27 +0800 Subject: [PATCH] WebUI: Fix magnet url from the browser --- src/webui/www/private/scripts/client.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/webui/www/private/scripts/client.js b/src/webui/www/private/scripts/client.js index 5ee928af4..4a58f0021 100644 --- a/src/webui/www/private/scripts/client.js +++ b/src/webui/www/private/scripts/client.js @@ -1177,7 +1177,7 @@ function handleDownloadParam() { if (location.hash.indexOf(downloadHash) !== 0) return; - const url = location.hash.substring(downloadHash.length); + const url = decodeURIComponent(location.hash.substring(downloadHash.length)); // Remove the processed hash from the URL history.replaceState('', document.title, (location.pathname + location.search)); showDownloadPage([url]);