Skip to content

Commit

Permalink
Ruby, come on. Ducktype this. Please.
Browse files Browse the repository at this point in the history
Use interpolated strings to get the to_s behavior you don't get with
just plussing.
  • Loading branch information
todb committed Apr 15, 2012
1 parent 0fa92c5 commit 8e414a8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/msf/core/db.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1236,10 +1236,10 @@ def report_vuln(opts)
if opts[:refs]
rids = []
opts[:refs].each do |r|
if r.respond_to? :ctx_id
r = r.ctx_id + '-' + r.ctx_val
if (r.respond_to?(:ctx_id)) and (r.respond_to?(:ctx_val))
r = "#{r.ctx_id}-#{r.ctx_val}"
rids << find_or_create_ref(:name => r)
end
rids << find_or_create_ref(:name => r)
end
end

Expand Down

0 comments on commit 8e414a8

Please sign in to comment.