From 441a2029d3eb9314d497da531d11c99a6c31b8f0 Mon Sep 17 00:00:00 2001 From: Girish M Date: Sep 04 2020 11:07:20 +0000 Subject: bug #59021 allow matching license URL strings by either http or https --- 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']}".`]; } }