reports/xml/buffer.rb in arachni-0.4.1.3 vs reports/xml/buffer.rb in arachni-0.4.2
- old
+ new
@@ -1,7 +1,7 @@
=begin
- Copyright 2010-2012 Tasos Laskos <tasos.laskos@gmail.com>
+ Copyright 2010-2013 Tasos Laskos <tasos.laskos@gmail.com>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
@@ -40,9 +40,13 @@
append "<credentials username=\"#{username}\" password=\"#{password}\" />"
end
def add_reference( name, url )
append "<reference name=\"#{name}\" url=\"#{url}\" />"
+ end
+
+ def add_remark( commenter, remark )
+ append "<remark by=\"#{commenter}\" text=\"#{escape( remark )}\" />"
end
def add_param( name, value )
append "<param name=\"#{name}\" value=\"#{value}\" />"
end