aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGirish M <girishm@posteo.net>2020-09-04 11:07:20 +0000
committerYuchen Pei <hi@ypei.me>2021-12-03 17:31:45 +1100
commite37a21e4c0bc26f0c7ae9e17cd9ca1abd8b56534 (patch)
treea0e0414e3c2aa44017ed631500d9c16116a722d0
parentf68bc5cafb3df5b09e2ac311491408aea585d599 (diff)
bug #59021
allow matching license URL strings by either http or https
-rw-r--r--main_background.js3
1 files changed, 2 insertions, 1 deletions
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("&amp;","&") ||
- licenses[key]["URL"] === first.replace("&amp;","&")) {
+ licenses[key]["URL"] === first.replace("&amp;","&") ||
+ licenses[key]["URL"].replace("http://", "https://") === first.replace("&amp;","&")) {
return [true, `Recognized license: "${licenses[key]['Name']}".`];
}
}