Use HTTPS when opening DOIs via Locate menu and double-click (#3757)

This commit is contained in:
Abe Jellinek 2024-02-27 14:42:08 -08:00 committed by GitHub
parent 50331b9a04
commit e1538d9f10
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -475,7 +475,7 @@ var Zotero_LocateMenu = new function() {
if(doi && typeof doi === "string") {
doi = Zotero.Utilities.cleanDOI(doi);
if(doi) {
return "http://dx.doi.org/" + encodeURIComponent(doi);
return "https://doi.org/" + encodeURIComponent(doi);
}
}

View file

@ -4823,7 +4823,7 @@ var ZoteroPane = new function()
// Pull out DOI, in case there's a prefix
doi = Zotero.Utilities.cleanDOI(doi);
if (doi) {
uri = "http://dx.doi.org/" + encodeURIComponent(doi);
uri = "https://doi.org/" + encodeURIComponent(doi);
}
}
}