I believe this is being caused by the if ($item->{'uri'} eq '') { return $template; } early exit to xml_change_vars in nikto_report_xml.plugin. Because this is happening before any substitution occurs, xml_change_vars is essentially a NOP when called from xml_host_start and xml_host_end. Prior to commit d71a8a3, a substitution happened before this early exit, but it was removed in that commit.
Hello,
When outputting XML results, the XML header and footer are being output without template variables being filled. For example,
I believe this is being caused by the if ($item->{'uri'} eq '') { return $template; } early exit to xml_change_vars in nikto_report_xml.plugin. Because this is happening before any substitution occurs, xml_change_vars is essentially a NOP when called from xml_host_start and xml_host_end. Prior to commit d71a8a3, a substitution happened before this early exit, but it was removed in that commit.