mirror of
https://github.com/nmap/nmap.git
synced 2025-12-07 21:21:31 +00:00
Lua 5.2 fixed from Daniel Miller.
http://seclists.org/nmap-dev/2012/q2/525
This commit is contained in:
@@ -2742,7 +2742,9 @@ Util =
|
||||
|
||||
if ( with_headers and tbl.rows and #tbl.rows > 0 ) then
|
||||
local headers
|
||||
table.foreach( tbl.colinfo, function( k, v ) table.insert( col_names, v.text) end)
|
||||
for k, v in pairs( tbl.colinfo ) do
|
||||
table.insert( col_names, v.text)
|
||||
end
|
||||
headers = stdnse.strjoin("\t", col_names)
|
||||
table.insert( new_tbl, headers)
|
||||
headers = headers:gsub("[^%s]", "=")
|
||||
|
||||
Reference in New Issue
Block a user