mirror of
https://github.com/nmap/nmap.git
synced 2025-12-09 06:01:28 +00:00
fixed a bug where any url would be treated as withinhost due to a lacking
return statement in the removewww function
This commit is contained in:
@@ -85,7 +85,7 @@ Options = {
|
|||||||
o.timeout = options.timeout or 10000
|
o.timeout = options.timeout or 10000
|
||||||
o.whitelist = o.whitelist or {}
|
o.whitelist = o.whitelist or {}
|
||||||
o.blacklist = o.blacklist or {}
|
o.blacklist = o.blacklist or {}
|
||||||
local removewww = function(url) string.gsub(url, "^www%.", "") end
|
local removewww = function(url) return string.gsub(url, "^www%.", "") end
|
||||||
|
|
||||||
if ( o.withinhost == true or o.withindomain == true ) then
|
if ( o.withinhost == true or o.withindomain == true ) then
|
||||||
-- set up the appropriate matching functions
|
-- set up the appropriate matching functions
|
||||||
|
|||||||
Reference in New Issue
Block a user