Skip to content

Commit

Permalink
Land #18823, Fix module metadata platform list comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
dwelch-r7 authored Feb 12, 2024
2 parents 8106dbe + a90ff41 commit 8717e91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/msf/core/modules/metadata/obj.rb
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ def force_encoding(encoding)
def parse_platform_list(platform_string)
return nil if platform_string.nil?

if platform_string.casecmp('All')
if platform_string.casecmp?('All')
# empty string represents all platforms in Msf::Module::PlatformList
platforms = ['']
else
Expand Down

0 comments on commit 8717e91

Please sign in to comment.