[Pkg-mozext-commits] [greasemonkey] 02/13: isRemoteUpdateAllowed(): all cases return a value

David Prévot taffit at moszumanska.debian.org
Thu Jul 17 20:10:00 UTC 2014


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository greasemonkey.

commit fd28991bfbd710204ca67b8b068353d09a0176e0
Author: Anthony Lieuallen <arantius at gmail.com>
Date:   Mon Jul 7 17:59:07 2014 -0400

    isRemoteUpdateAllowed(): all cases return a value
    
    Fix breakage introduced in 1ddf46312573d1ddbb5dc3e52b19cd68cace743c
    
    Refs #1947
    Fixes #1938
---
 modules/script.js | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/modules/script.js b/modules/script.js
index b486010..e399b0c 100644
--- a/modules/script.js
+++ b/modules/script.js
@@ -517,12 +517,10 @@ Script.prototype.isRemoteUpdateAllowed = function(aForced) {
   case 'ftp':
   case 'http':
     // These schemes are OK only if the user opts in.
-    if (GM_prefRoot.getValue('requireSecureUpdates')) {
-      return false;
-    }
-    break;
+    return !GM_prefRoot.getValue('requireSecureUpdates');;
   case 'https':
     // HTTPs is always OK.
+    return true;
     break;
   default:
     // Anything not listed: default to not allow.

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/greasemonkey.git



More information about the Pkg-mozext-commits mailing list