Skip to content

Commit

Permalink
Land #16029, Fix OptPath options with empty strings
Browse files Browse the repository at this point in the history
  • Loading branch information
gwillcox-r7 committed Jan 19, 2022
2 parents 4067ced + 59de13b commit a7bb8d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/msf/core/opt_path.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def type
end

def normalize(value)
value.nil? ? value : File.expand_path(value)
value.nil? || value.to_s.empty? ? value : File.expand_path(value)
end

def validate_on_assignment?
Expand Down

0 comments on commit a7bb8d0

Please sign in to comment.