From f5e76c863eb4e791a6be6551bf9e0628e32cedb1 Mon Sep 17 00:00:00 2001 From: Tyler Bruffy Date: Mon, 27 Oct 2014 17:38:31 -0400 Subject: [PATCH] Fixes escaped strings getting set in db --- lib/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/utils.js b/lib/utils.js index e20b69a..cee86f1 100644 --- a/lib/utils.js +++ b/lib/utils.js @@ -43,7 +43,7 @@ module.exports.wp = function(use,args,flags,cb){ return flags[k].map(function(flag){ if(flag===true) return util.format("--%s",k); - return util.format("--%s=%s",k,escapeshell(flag)); + return util.format('--%s="%s"',k,escapeshell(flag)); }).join(" "); }).join(" "); } else {