mirror of
https://github.com/nmap/nmap.git
synced 2025-12-10 06:31:30 +00:00
Don't write to XML output directly in nmap.cc. Spotted and fixed by
Michal Hrusecki (http://seclists.org/nmap-dev/2014/q3/180).
This commit is contained in:
1
nmap.cc
1
nmap.cc
@@ -1748,7 +1748,6 @@ int nmap_main(int argc, char *argv[]) {
|
||||
chomp(mytime);
|
||||
char *xslfname = o.XSLStyleSheet();
|
||||
xml_start_document();
|
||||
log_write(LOG_XML, "<!DOCTYPE nmaprun PUBLIC \"-//IDN nmap.org//DTD Nmap XML %s//EN\" \"https://svn.nmap.org/nmap/docs/nmap.dtd\">\n", NMAP_XMLOUTPUTVERSION);
|
||||
if (xslfname) {
|
||||
xml_open_pi("xml-stylesheet");
|
||||
xml_attribute("href", "%s", xslfname);
|
||||
|
||||
Reference in New Issue
Block a user