1
0
mirror of https://github.com/nmap/nmap.git synced 2026-01-03 05:09:14 +00:00

changed the extractAttribute function to be case insensitive when retrieving

attributes.
This commit is contained in:
patrik
2010-11-04 19:53:01 +00:00
parent e7a185eeea
commit 937b2df7dd

View File

@@ -465,7 +465,7 @@ function extractAttribute( searchEntries, attributeName )
for _, attrib in ipairs( v.attributes ) do
local attribType = attrib[1]
for i=2, #attrib do
if attribType == attributeName then
if ( attribType:upper() == attributeName:upper() ) then
table.insert( attributeTbl, attrib[i])
end
end