Fixes for ruby 3

This commit is contained in:
erwanlr
2021-06-08 16:16:10 +02:00
parent 6060fc7a69
commit d14bc739c8
3 changed files with 6 additions and 6 deletions

View File

@@ -162,7 +162,7 @@ module WPScan
#
# @return [ Typhoeus::Response ]
def head_and_get(path, codes = [200], params = {})
final_path = +@path_from_blog
final_path = @path_from_blog.dup # @path_from_blog is set in the plugin/theme
final_path << path unless path.nil?
blog.head_and_get(final_path, codes, params)