diff options
author | Ruben Rodriguez <ruben@gnu.org> | 2016-11-21 14:41:08 -0500 |
---|---|---|
committer | Ruben Rodriguez <ruben@gnu.org> | 2016-11-21 14:41:08 -0500 |
commit | 1aecd18e5cc9d8b9dfd4063e749ce61eb0077e2a (patch) | |
tree | 67c72d47420617f9420c36eedd3489803dae35bc /data/extensions/https-everywhere-eff@eff.org/chrome/content/code/HTTPS.js | |
parent | d05c3f23b8e31db1d3f112557bd4f66f364d32b9 (diff) | |
download | gnuzilla-1aecd18e5cc9d8b9dfd4063e749ce61eb0077e2a.tar.gz |
https-everywhere updated to 5.2.7
Diffstat (limited to 'data/extensions/https-everywhere-eff@eff.org/chrome/content/code/HTTPS.js')
-rw-r--r-- | data/extensions/https-everywhere-eff@eff.org/chrome/content/code/HTTPS.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/data/extensions/https-everywhere-eff@eff.org/chrome/content/code/HTTPS.js b/data/extensions/https-everywhere-eff@eff.org/chrome/content/code/HTTPS.js index c5834dd..1ba27b4 100644 --- a/data/extensions/https-everywhere-eff@eff.org/chrome/content/code/HTTPS.js +++ b/data/extensions/https-everywhere-eff@eff.org/chrome/content/code/HTTPS.js @@ -43,8 +43,8 @@ const HTTPS = { var isSTS = securityService.isSecureURI( CI.nsISiteSecurityService.HEADER_HSTS, channel.URI, 0); if (blob === null) { - // Abort insecure requests if HTTP Nowhere is on - if (httpNowhereEnabled && channel.URI.schemeIs("http") && !isSTS) { + // Abort insecure non-onion requests if HTTP Nowhere is on + if (httpNowhereEnabled && channel.URI.schemeIs("http") && !isSTS && !/\.onion$/.test(channel.URI.host)) { IOUtil.abort(channel); } return false; // no rewrite |