From 9b3013278bac5bb73be28cc4121bd56ab7a11e61 Mon Sep 17 00:00:00 2001 From: Jason Heard Date: Tue, 10 Mar 2020 14:21:23 -0600 Subject: [PATCH 1/2] Check httpSafeOrigin in config variable --- server.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.js b/server.js index 7b0e93687..9b82d7c3c 100644 --- a/server.js +++ b/server.js @@ -55,7 +55,7 @@ if (process.env.PACKAGE) { config.httpPort = 3000; } - if (typeof(httpSafeOrigin) !== 'string') { + if (typeof(config.httpSafeOrigin) !== 'string') { if (typeof(config.httpSafePort) !== 'number') { config.httpSafePort = config.httpPort + 1; } From d4038344bab245bd92ac18abd52533c3cf2fedb3 Mon Sep 17 00:00:00 2001 From: ansuz Date: Wed, 11 Mar 2020 16:34:00 -0400 Subject: [PATCH 2/2] stop iterating over tasks if you can't read the root directory --- lib/storage/tasks.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/storage/tasks.js b/lib/storage/tasks.js index bb4dbdb9c..3c50f8ce7 100644 --- a/lib/storage/tasks.js +++ b/lib/storage/tasks.js @@ -102,6 +102,7 @@ var list = Tasks.list = function (env, cb, migration) { root: env.root, error: e, }); + w.abort(); return void cb(e); } if (list.length === 0) {