From 54313a53afa0be5b28487ed4b0fa396aed807231 Mon Sep 17 00:00:00 2001 From: fyodor Date: Thu, 27 May 2010 02:28:40 +0000 Subject: [PATCH] Change --webxml nmap.xsl stylesheet location from http://nmap.org/data/nmap.xsl to http://nmap.org/svn/docs/nmap.xsl. The former just redirected to the latter anyway. Maybe it would be better to just use http://nmap.org/nmap.xsl and make that a symlink to the appropriate place. Oh well, I think this is fine for now. --- docs/refguide.xml | 4 ++-- nmap.cc | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/refguide.xml b/docs/refguide.xml index 29da5a2ba..801f37d87 100644 --- a/docs/refguide.xml +++ b/docs/refguide.xml @@ -3891,7 +3891,7 @@ hosts with at least one . You must pass the full pathname or URL. One common invocation is . This + http://nmap.org/svn/docs/nmap.xsl. This tells a browser to load the latest version of the stylesheet from Nmap.Org. The option does the same thing with less typing and memorization. @@ -3911,7 +3911,7 @@ hosts with at least one This convenience option is simply an alias for - . + . diff --git a/nmap.cc b/nmap.cc index acceed4fd..fac8d4596 100644 --- a/nmap.cc +++ b/nmap.cc @@ -920,7 +920,7 @@ int nmap_main(int argc, char *argv[]) { } else if (optcmp(long_options[option_index].name, "log-errors") == 0) { o.log_errors = 1; } else if (strcmp(long_options[option_index].name, "webxml") == 0) { - o.setXSLStyleSheet("http://nmap.org/data/nmap.xsl"); + o.setXSLStyleSheet("http://nmap.org/svn/docs/nmap.xsl"); } else if (strcmp(long_options[option_index].name, "oN") == 0) { normalfilename = logfilename(optarg, tm); } else if (strcmp(long_options[option_index].name, "oG") == 0 ||