From e37a21e4c0bc26f0c7ae9e17cd9ca1abd8b56534 Mon Sep 17 00:00:00 2001 From: Girish M Date: Fri, 4 Sep 2020 11:07:20 +0000 Subject: bug #59021 allow matching license URL strings by either http or https --- main_background.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main_background.js b/main_background.js index 51f8145..82f3453 100644 --- a/main_background.js +++ b/main_background.js @@ -625,7 +625,8 @@ function validateLicense(matches) { } // Match by link on first parameter (legacy) if (licenses[key]["Magnet link"] === first.replace("&","&") || - licenses[key]["URL"] === first.replace("&","&")) { + licenses[key]["URL"] === first.replace("&","&") || + licenses[key]["URL"].replace("http://", "https://") === first.replace("&","&")) { return [true, `Recognized license: "${licenses[key]['Name']}".`]; } } -- cgit v1.2.3