mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-11 07:18:08 +00:00
WebUI: Fix magnet url from the browser
This commit is contained in:
parent
2e30ed17bd
commit
bb9ca7f418
@ -1177,7 +1177,7 @@ function handleDownloadParam() {
|
|||||||
if (location.hash.indexOf(downloadHash) !== 0)
|
if (location.hash.indexOf(downloadHash) !== 0)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
const url = location.hash.substring(downloadHash.length);
|
const url = decodeURIComponent(location.hash.substring(downloadHash.length));
|
||||||
// Remove the processed hash from the URL
|
// Remove the processed hash from the URL
|
||||||
history.replaceState('', document.title, (location.pathname + location.search));
|
history.replaceState('', document.title, (location.pathname + location.search));
|
||||||
showDownloadPage([url]);
|
showDownloadPage([url]);
|
||||||
|
Loading…
Reference in New Issue
Block a user