Hello,
I submitted these 3 small fixes to [EMAIL PROTECTED] (as instructed on the
site) last tuesday. Since I got no answer, I assume it may be best to
post them here.
They fix a "Bad HTTP request" that happens when attempting to access RRD
Stats with Netscape 4.7, and display ntop log (from the admin menu) in
HTML instead of plain text (in fact, HTML, but displayed as plain text).
Have a nice day,
Lo�c
--- http-old.c 2003-08-05 14:02:12.000000000 +0200
+++ http.c 2003-08-05 14:02:18.000000000 +0200
@@ -2038,7 +2038,7 @@
printNtopProblemReport();
printTrailer = 0;
} else if(strncmp(pageName, STR_VIEW_LOG_HTML, strlen(STR_VIEW_LOG_HTML)) == 0) {
- sendHTTPHeader(FLAG_HTTP_TYPE_TEXT, 0);
+ sendHTTPHeader(FLAG_HTTP_TYPE_HTML, 0);
printNtopLogReport();
printTrailer = 0;
} else
--- report-old.c 2003-08-05 11:20:37.000000000 +0200
+++ report.c 2003-08-05 11:21:11.000000000 +0200
@@ -622,7 +622,7 @@
if((i = stat(buf, &statbuf)) == 0) {
if(snprintf(buf, sizeof(buf), "<TR %s><TH "TH_BG" ALIGN=LEFT>%s</TH><TD "TD_BG"
ALIGN=RIGHT>"
- "[ <A
HREF=\"/plugins/rrdPlugin?action=list&key=interfaces/%s&title=interface %s\">"
+ "[ <A
HREF=\"/plugins/rrdPlugin?action=list&key=interfaces/%s&title=interface%%20%s\">"
"<IMG BORDER=0 SRC=/graph.gif></A> ]</TD></TR>\n",
getRowColor(), "RRD Stats",
myGlobals.device[myGlobals.actualReportDeviceId].humanFriendlyName,
myGlobals.device[myGlobals.actualReportDeviceId].humanFriendlyName) <
0)
--- reportUtils-old.c 2003-08-05 11:20:48.000000000 +0200
+++ reportUtils.c 2003-08-05 11:23:17.000000000 +0200
@@ -3658,7 +3658,7 @@
if(stat(buf, &statbuf) == 0) {
if(snprintf(buf, sizeof(buf), "<TR %s><TH "TH_BG" ALIGN=LEFT>%s</TH><TD "TD_BG"
ALIGN=RIGHT>"
- "[ <A
HREF=\"/plugins/rrdPlugin?action=list&key=interfaces/%s/hosts/%s&title=host %s\">"
+ "[ <A
HREF=\"/plugins/rrdPlugin?action=list&key=interfaces/%s/hosts/%s&title=host%%20%s\">"
"<IMG BORDER=0 SRC=/graph.gif TITLE=\"link to rrd graphs\"></A>
]</TD></TR>\n",
getRowColor(), "RRD Stats",
myGlobals.device[myGlobals.actualReportDeviceId].humanFriendlyName,