From 6dc6b95377fb1bc7ca897cda66320a32c924e34d Mon Sep 17 00:00:00 2001 From: patrik Date: Thu, 26 Jul 2012 13:37:04 +0000 Subject: [PATCH] fixed a bug in whitelisting code --- nselib/httpspider.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/nselib/httpspider.lua b/nselib/httpspider.lua index fc010f9c8..b82791462 100644 --- a/nselib/httpspider.lua +++ b/nselib/httpspider.lua @@ -275,6 +275,7 @@ LinkExtractor = { -- check the url against our whitelist if ( #self.options.whitelist > 0 ) then + valid = false for _, func in ipairs(self.options.whitelist) do if ( func(url) ) then stdnse.print_debug(2, "%s: Whitelist match: %s", LIBRARY_NAME, tostring(url))