From 2fa36ec97feeae18c0c6a2cd8f2160494f6876f1 Mon Sep 17 00:00:00 2001 From: dmiller Date: Tue, 11 Aug 2015 20:45:33 +0000 Subject: [PATCH] Fix arg parsing with nested tables, e.g. {{path=/}} --- nse_main.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nse_main.lua b/nse_main.lua index a7f7235e6..9c464f424 100644 --- a/nse_main.lua +++ b/nse_main.lua @@ -1194,7 +1194,7 @@ do value = V "table" + V "string"; string = V "qstring" + V "uqstring"; qstring = U.escaped_quote('"') + U.escaped_quote("'"); - uqstring = V "space"^0 * C((P(1) - V "space"^0 * S ",}=")^0) * V "space"^0; -- everything but ',}=', do not capture final space + uqstring = V "space"^0 * C((P(1) - V "space"^0 * S ",{}=")^0) * V "space"^0; -- everything but ',{}=', do not capture final space }; parser = assert(P(parser)); nmap.registry.args = parser:match("{"..args.."}");