1
0
mirror of https://github.com/nmap/nmap.git synced 2026-01-02 12:59:02 +00:00

Fix arg parsing with nested tables, e.g. {{path=/}}

This commit is contained in:
dmiller
2015-08-11 20:45:33 +00:00
parent 1de1b10c89
commit 2fa36ec97f

View File

@@ -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.."}");