diff options
author | Girish M <girishm@posteo.net> | 2020-09-04 11:07:20 +0000 |
---|---|---|
committer | Yuchen Pei <hi@ypei.me> | 2021-12-03 17:31:45 +1100 |
commit | e37a21e4c0bc26f0c7ae9e17cd9ca1abd8b56534 (patch) | |
tree | a0e0414e3c2aa44017ed631500d9c16116a722d0 | |
parent | f68bc5cafb3df5b09e2ac311491408aea585d599 (diff) |
bug #59021
allow matching license URL strings by either http or https
-rw-r--r-- | main_background.js | 3 |
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("&","&") || - 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']}".`]; } } |