[Pkg-mozext-commits] [greasemonkey] 07/19: Harden script object selection in scriptprefs.js.

David Prévot taffit at moszumanska.debian.org
Sat Mar 21 02:50:57 UTC 2015


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

taffit pushed a commit to branch master
in repository greasemonkey.

commit 1de6ea8cb09e40961ef6407cc4fb833b8f41f4fe
Author: Anthony Lieuallen <arantius at gmail.com>
Date:   Mon Mar 16 10:40:04 2015 -0400

    Harden script object selection in scriptprefs.js.
    
    Refs #2073
---
 content/scriptprefs.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/content/scriptprefs.js b/content/scriptprefs.js
index f84fdb4..4d7af8a 100644
--- a/content/scriptprefs.js
+++ b/content/scriptprefs.js
@@ -2,7 +2,7 @@ Components.utils.import('resource://greasemonkey/util.js'); // ref'd in XUL
 
 var gScriptId = decodeURIComponent(location.hash.substring(1));
 var gScript = GM_util.getService().config.getMatchingScripts(function(script) {
-  return script.id == gScriptId;
+  return script && (script.id == gScriptId);
 })[0];
 
 var gScriptExcludesEl;

-- 
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