Skip to content

Commit 846dbc7

Browse files
committed
Fix rapid7#4163 - Update merge_check_key to keep up with 2.1.4 change
The merge_check_key method (found in Msf::Module::ModuleInfo)) uses respond_to? to check is our object includes a merge_info_description method before merging descriptions. The respond_to? method in 2.1.4 by default no longer checks private and protected methods, and this is breaking our merge_check_key method. Fix rapid7#4163
1 parent 54158c8 commit 846dbc7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/msf/core/module/module_info.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ def info_fixups
7474
# Checks and merges the supplied key/value pair in the supplied hash.
7575
#
7676
def merge_check_key(info, name, val)
77-
if (self.respond_to?("merge_info_#{name.downcase}"))
77+
if (self.respond_to?("merge_info_#{name.downcase}", true))
7878
eval("merge_info_#{name.downcase}(info, val)")
7979
else
8080
# If the info hash already has an entry for this name

0 commit comments

Comments
 (0)