From 1bec80b5a186dfb20774cad1b3aedeff392c828b Mon Sep 17 00:00:00 2001 From: Michiel Broek Date: Sun, 2 Jan 2005 15:36:09 +0000 Subject: [PATCH] Fixed some html escaping for test --- ChangeLog | 4 ++++ mbfido/makestat.c | 11 +++++++---- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 69dd0313..2b7bc8e8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -24,6 +24,10 @@ v0.71.1 28-Nov-2004 During hangup we set sighup to ignore. Fixed keyboad input for all bigendian machines. + mbfido: + With html create some entries are not forced to use html + entinities. For test! + mbfile: The adopt command now first checks if the filename is 8.3 or a long filename and the correct format for import is then set. diff --git a/mbfido/makestat.c b/mbfido/makestat.c index fde3223b..7742cebc 100644 --- a/mbfido/makestat.c +++ b/mbfido/makestat.c @@ -127,7 +127,7 @@ void MakeStat(void) } Syslog('+', "Start making statistic HTML pages"); - name = calloc(128, sizeof(char)); + name = calloc(PATH_MAX, sizeof(char)); if (Miy == 0) Lm = 11; else @@ -365,9 +365,12 @@ void MakeStat(void) if (!strcmp(hist.aka.domain, "(null)")) hist.aka.domain[0] = '\0'; MacroVars("c", "s", hist.aka.zone ? aka2str(hist.aka):" "); - MacroVars("d", "s", hist.system_name); - MacroVars("e", "s", hist.sysop); - MacroVars("f", "s", hist.location); + html_massage(hist.system_name, name); + MacroVars("d", "s", name); + html_massage(hist.sysop, name); + MacroVars("e", "s", name); + html_massage(hist.location, name); + MacroVars("f", "s", name); MacroVars("g", "s", strlen(hist.tty) ? hist.tty:" "); MacroVars("h", "s", adate(hist.online)); MacroVars("i", "s", t_elapsed(hist.online, hist.offline));