From 8b7742cb7be514cb23a0672faa6a59ca4d9ca850 Mon Sep 17 00:00:00 2001 From: flatgreen Date: Mon, 26 Aug 2019 14:02:46 +0200 Subject: [PATCH] add encodeURIComponent in urlConstruct --- background.js | 2 +- manifest.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/background.js b/background.js index c1afbbc..8da6141 100644 --- a/background.js +++ b/background.js @@ -33,7 +33,7 @@ function makeRequest(url) { } function urlConstruct(url, autostart) { - return JD2_API_URL + "autostart=" + autostart + "&urls=" + url; + return JD2_API_URL + "autostart=" + autostart + "&urls=" + encodeURIComponent(url); } diff --git a/manifest.json b/manifest.json index b3c8966..158848d 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "manifest_version": 2, "name": "UrlToJD2", - "version": "1.0", + "version": "1.1", "description": "Push the current url navigator to JDownloader 2", "developer": {