diff --git a/doc/Array.html b/doc/Array.html index 8bae154d..7beab4b6 100644 --- a/doc/Array.html +++ b/doc/Array.html @@ -132,6 +132,8 @@
  • Svn_Parser
  • +
  • URI
  • +
  • Updater
  • UpdaterFactory
  • @@ -230,7 +232,7 @@
    -# File lib/common_helper.rb, line 82
    +# File lib/common_helper.rb, line 88
     def _grep_(regexp)
       matches = []
       self.each do |value|
    diff --git a/doc/Browser.html b/doc/Browser.html
    index 6487c717..ac5d341c 100644
    --- a/doc/Browser.html
    +++ b/doc/Browser.html
    @@ -148,6 +148,8 @@
             
               
  • Svn_Parser
  • +
  • URI
  • +
  • Updater
  • UpdaterFactory
  • diff --git a/doc/BruteForce.html b/doc/BruteForce.html index 4cd89924..a6484f93 100644 --- a/doc/BruteForce.html +++ b/doc/BruteForce.html @@ -124,6 +124,8 @@
  • Svn_Parser
  • +
  • URI
  • +
  • Updater
  • UpdaterFactory
  • diff --git a/doc/CREDITS.html b/doc/CREDITS.html index de771b21..f58faa9e 100644 --- a/doc/CREDITS.html +++ b/doc/CREDITS.html @@ -88,6 +88,8 @@
  • Svn_Parser
  • +
  • URI
  • +
  • Updater
  • UpdaterFactory
  • diff --git a/doc/CacheFileStore.html b/doc/CacheFileStore.html index 8d0b8139..4c6fb242 100644 --- a/doc/CacheFileStore.html +++ b/doc/CacheFileStore.html @@ -138,6 +138,8 @@
  • Svn_Parser
  • +
  • URI
  • +
  • Updater
  • UpdaterFactory
  • diff --git a/doc/Exploit.html b/doc/Exploit.html index d1f36c7f..8d35308e 100644 --- a/doc/Exploit.html +++ b/doc/Exploit.html @@ -156,6 +156,8 @@
  • Svn_Parser
  • +
  • URI
  • +
  • Updater
  • UpdaterFactory
  • diff --git a/doc/Generate_List.html b/doc/Generate_List.html index e27b93d9..f8c6c078 100644 --- a/doc/Generate_List.html +++ b/doc/Generate_List.html @@ -138,6 +138,8 @@
  • Svn_Parser
  • +
  • URI
  • +
  • Updater
  • UpdaterFactory
  • diff --git a/doc/GitUpdater.html b/doc/GitUpdater.html index 878ac76c..c8366a27 100644 --- a/doc/GitUpdater.html +++ b/doc/GitUpdater.html @@ -136,6 +136,8 @@
  • Svn_Parser
  • +
  • URI
  • +
  • Updater
  • UpdaterFactory
  • diff --git a/doc/Malwares.html b/doc/Malwares.html index f679e02a..3fab9ede 100644 --- a/doc/Malwares.html +++ b/doc/Malwares.html @@ -128,6 +128,8 @@
  • Svn_Parser
  • +
  • URI
  • +
  • Updater
  • UpdaterFactory
  • @@ -334,7 +336,7 @@
     # File lib/wpscan/modules/malwares.rb, line 28
     def malwares(malwares_file_path = nil)
    -  if @malwares.nil?
    +  unless @malwares
         malwares_found = []
         malwares_file = Malwares.malwares_file(malwares_file_path)
         index_page_body = Browser.instance.get(@uri.to_s).body
    diff --git a/doc/Object.html b/doc/Object.html
    index 7252d523..54146448 100644
    --- a/doc/Object.html
    +++ b/doc/Object.html
    @@ -34,14 +34,14 @@
             
    @@ -154,6 +154,8 @@
             
               
  • Svn_Parser
  • +
  • URI
  • +
  • Updater
  • UpdaterFactory
  • @@ -312,10 +314,7 @@
     # File lib/common_helper.rb, line 42
     def add_http_protocol(url)
    -  if url !~ /^https?:/
    -    url = "http://#{url}"
    -  end
    -  url
    +  url =~ /^https?:/ ? url : "http://#{url}"
     end
    @@ -346,10 +345,9 @@
    -# File lib/common_helper.rb, line 49
    +# File lib/common_helper.rb, line 46
     def add_trailing_slash(url)
    -  url = "#{url}/" if url !~ /\/$/
    -  url
    +  url =~ /\/$/ ? url : "#{url}/"
     end
    @@ -380,7 +378,7 @@