Skip to content

Commit d7ecd8b

Browse files
committed
Merge branch 'onionpatch' of https://github.com/fuglede/https-everywhere into fuglede-onionpatch
2 parents 7e7bb62 + b5484e9 commit d7ecd8b

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

‎src/chrome/content/code/HTTPS.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ const HTTPS = {
4343
var isSTS = securityService.isSecureURI(
4444
CI.nsISiteSecurityService.HEADER_HSTS, channel.URI, 0);
4545
if (blob === null) {
46-
// Abort insecure requests if HTTP Nowhere is on
47-
if (httpNowhereEnabled && channel.URI.schemeIs("http") && !isSTS) {
46+
// Abort insecure non-onion requests if HTTP Nowhere is on
47+
if (httpNowhereEnabled && channel.URI.schemeIs("http") && !isSTS && !/\.onion$/.test(channel.URI.host)) {
4848
IOUtil.abort(channel);
4949
}
5050
return false; // no rewrite

‎src/chrome/content/toolbar_button.xul‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
command="https-everywhere-menuitem-resetToDefaults" class="hide-on-disable"/>
4949
<menuitem label="&https-everywhere.menu.viewAllRules;"
5050
command="https-everywhere-menuitem-viewAllRules" class="hide-on-disable" />
51-
<menuitem type="checkbox" id="http-nowhere-item" label="&https-everywhere.menu.blockHttpRequests;"
51+
<menuitem type="checkbox" id="http-nowhere-item" label="&https-everywhere.menu.blockUnencryptedRequests;"
5252
oncommand="httpsEverywhere.toolbarButton.toggleHttpNowhere()" class="hide-on-disable"/>
5353
<menuseparator class="hide-on-disable"/>
5454
<menuitem type="checkbox" id="https-everywhere-counter-item" label="&https-everywhere.menu.showCounter;"

‎src/chrome/locale/en/https-everywhere.dtd‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
<!ENTITY https-everywhere.menu.observatory "SSL Observatory Preferences">
2121
<!ENTITY https-everywhere.menu.globalEnable "Enable HTTPS Everywhere">
2222
<!ENTITY https-everywhere.menu.globalDisable "Disable HTTPS Everywhere">
23-
<!ENTITY https-everywhere.menu.blockHttpRequests "Block all HTTP requests">
23+
<!ENTITY https-everywhere.menu.blockUnencryptedRequests "Block all unencrypted requests">
2424
<!ENTITY https-everywhere.menu.showCounter "Show Counter">
2525
<!ENTITY https-everywhere.menu.viewAllRules "View All Rules">
2626

0 commit comments

Comments
 (0)