From dad63deff72d7c55bc1369fe894e38fa854fcc5f Mon Sep 17 00:00:00 2001 From: "Michael S. Daines" Date: Mon, 24 Feb 2014 13:14:06 -0800 Subject: [PATCH] #50 VulnException#save should no longer drop comments. --- lib/nexpose/vuln_exception.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/nexpose/vuln_exception.rb b/lib/nexpose/vuln_exception.rb index 733f9905..febd74ce 100644 --- a/lib/nexpose/vuln_exception.rb +++ b/lib/nexpose/vuln_exception.rb @@ -157,9 +157,9 @@ def save(connection, comment = nil) @submitter_comment = comment if comment if @submitter_comment - comment = REXML::Element.new('comment') - comment.add_text(comment) - xml.add_element(comment) + comment_elem = REXML::Element.new('comment') + comment_elem.add_text(@submitter_comment) + xml.add_element(comment_elem) end response = connection.execute(xml, '1.2')