diff --git a/nselib/httpspider.lua b/nselib/httpspider.lua index b82791462..9698c1279 100644 --- a/nselib/httpspider.lua +++ b/nselib/httpspider.lua @@ -85,7 +85,7 @@ Options = { o.timeout = options.timeout or 10000 o.whitelist = o.whitelist 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 -- set up the appropriate matching functions