lib/arachni/uri/scope.rb in arachni-1.1 vs lib/arachni/uri/scope.rb in arachni-1.2
- old
+ new
@@ -78,10 +78,10 @@
def follow_protocol?
return true if !Options.url
check_scheme = @url.scheme.to_s
- return false if !%(http https).include?( check_scheme )
+ return false if check_scheme != 'http' && check_scheme != 'https'
parsed_ref = Arachni::URI( Options.url )
return false if !parsed_ref
ref_scheme = parsed_ref.scheme