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:
patrik 2012-08-03 06:13:57 +00:00
parent 21ba9f7b4a
commit e7cb28619e

View file

@ -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