Fix for http-wordpress-plugins by Daniel Miller.

http://seclists.org/nmap-dev/2012/q2/887
This commit is contained in:
david 2012-06-22 18:58:53 +00:00
parent ba5a79acdc
commit b6f66fba81

View file

@ -55,7 +55,7 @@ portrule = shortport.service("http")
local function read_data_file(file)
return coroutine.wrap(function()
for line in file:lines(file) do
for line in file:lines() do
if not line:match("^%s*#") and not line:match("^%s*$") then
coroutine.yield(line)
end