Fix specs #748
This commit is contained in:
@@ -21,6 +21,7 @@ class WpTarget < WebSite
|
||||
attr_reader :verbose
|
||||
|
||||
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)
|
||||
|
||||
@verbose = options[:verbose]
|
||||
|
||||
@@ -53,7 +53,7 @@ class WpscanOptions
|
||||
end
|
||||
|
||||
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
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user