Skip to content
This repository has been archived by the owner on Dec 17, 2017. It is now read-only.

Commit

Permalink
embed string injection to prevent nil->string errors
Browse files Browse the repository at this point in the history
  • Loading branch information
glasnt committed Sep 8, 2014
1 parent d9b5d50 commit 1263650
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/vaultaire.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ def metadata_table metric
t = URI.decode(metric).strip.split(DELIM).map{|a| a.split(KVP)}

table = ""
t.each {|a|
table += "<tr><td>"+a[0]+"</td><td> = "+a[1]+"</td></tr>"
t.each {|a|
table += "<tr><td>#{a[0]}</td><td> = #{a[1]}</td></tr>"
}

header = "<tr><td>#{@origin_id}</td><td> - #{self.class.name}</td></tr>"
Expand Down

0 comments on commit 1263650

Please sign in to comment.