Fix specs #748
This commit is contained in:
@@ -21,6 +21,7 @@ class WpTarget < WebSite
|
|||||||
attr_reader :verbose
|
attr_reader :verbose
|
||||||
|
|
||||||
def initialize(target_url, options = {})
|
def initialize(target_url, options = {})
|
||||||
|
raise Exception.new('target_url can not be nil or empty') if target_url.nil? || target_url == ''
|
||||||
super(target_url)
|
super(target_url)
|
||||||
|
|
||||||
@verbose = options[:verbose]
|
@verbose = options[:verbose]
|
||||||
|
|||||||
@@ -53,7 +53,7 @@ class WpscanOptions
|
|||||||
end
|
end
|
||||||
|
|
||||||
def url=(url)
|
def url=(url)
|
||||||
raise 'Empty URL given' if !url
|
raise Exception.new('Empty URL given') if url.nil? || url == ''
|
||||||
|
|
||||||
@url = URI.parse(add_http_protocol(url)).to_s
|
@url = URI.parse(add_http_protocol(url)).to_s
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user