Skip to content

Commit 395a58a

Browse files
committed
use https
1 parent ec534e6 commit 395a58a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎lib/bibref.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,10 +120,10 @@ function normalizeUrl(u) {
120120
return '';
121121
}
122122

123-
// If no protocol, try adding http:// for parsing
123+
// If no protocol, default to https:// for security
124124
var urlToParse = u;
125125
if (!/^https?:\/\//.test(u)) {
126-
urlToParse = 'http://' + u;
126+
urlToParse = 'https://' + u;
127127
}
128128

129129
var urlObj = new URL(urlToParse);

0 commit comments

Comments
 (0)