mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 06:40:48 +00:00
fixed another bug in format_output(), thanks to Patrik.
This commit is contained in:
parent
e47175b4b8
commit
958ba69422
1 changed files with 2 additions and 2 deletions
|
|
@ -417,8 +417,8 @@ function format_output(status, data, indent)
|
|||
return ""
|
||||
end
|
||||
|
||||
-- Return a single line of output as-is
|
||||
if(indent == nil and #data == 1 and not(data['name']) and not(data['warning'])) then
|
||||
-- Return a single line of output as-is (assuming it's top-level and a string)
|
||||
if(indent == nil and #data == 1 and type(data) == 'string' and not(data['name']) and not(data['warning'])) then
|
||||
return data[1]
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue