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:
@@ -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.."}");
|
||||
|
||||
Reference in New Issue
Block a user