mirror of
https://github.com/nmap/nmap.git
synced 2025-12-06 12:41:29 +00:00
fixed a bug in whitelisting code
This commit is contained in:
@@ -275,6 +275,7 @@ LinkExtractor = {
|
|||||||
|
|
||||||
-- check the url against our whitelist
|
-- check the url against our whitelist
|
||||||
if ( #self.options.whitelist > 0 ) then
|
if ( #self.options.whitelist > 0 ) then
|
||||||
|
valid = false
|
||||||
for _, func in ipairs(self.options.whitelist) do
|
for _, func in ipairs(self.options.whitelist) do
|
||||||
if ( func(url) ) then
|
if ( func(url) ) then
|
||||||
stdnse.print_debug(2, "%s: Whitelist match: %s", LIBRARY_NAME, tostring(url))
|
stdnse.print_debug(2, "%s: Whitelist match: %s", LIBRARY_NAME, tostring(url))
|
||||||
|
|||||||
Reference in New Issue
Block a user