This commit is contained in:
ethicalhack3r
2015-01-02 18:17:45 +01:00
parent c5136fd330
commit b7f7bdb9ac
2 changed files with 2 additions and 1 deletions

View File

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

View File

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