Skip to content

Commit

Permalink
#50 VulnException#save should no longer drop comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
mdaines-r7 committed Feb 24, 2014
1 parent 6be1519 commit dad63de
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/nexpose/vuln_exception.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit dad63de

Please sign in to comment.