mirror of
https://github.com/nmap/nmap.git
synced 2026-02-05 21:16:33 +00:00
This should be handled by the generic case, and I don't think it was used anyway because the logic was wrong: if(indent == nil and #data == 1 and type(data) == 'string' and not(data['name']) and not(data['warning'])) then return data[1] end This seems to be checking for a one-element table whose single element is a string. But the test "#data == 1 and type(data) == 'string'" is actually testing for a one-byte string. I think this is supposed to be "type(data[1]) == 'string'", but anyway it should be handled by the generic case.
26 KiB
26 KiB