From 09e7cd870889dacedb555c517415ae067074081c Mon Sep 17 00:00:00 2001 From: Michiel Broek Date: Thu, 19 Aug 2004 20:03:03 +0000 Subject: [PATCH] Small fix for mbfile index --- ChangeLog | 4 ++++ mbfido/mbfindex.c | 6 ++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index f4e2658f..98e6346e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -26,6 +26,10 @@ v0.61.4 11-Aug-2004 Outlook email addresses are parsed so that we can reply via smtp. + mbfile: + The html index now uses html named character entities on the + area names on the main index page. + mbindex: Fixed compiling pointlists where on the Boss line there is no last comma on the line. diff --git a/mbfido/mbfindex.c b/mbfido/mbfindex.c index bda32dcc..4155e831 100644 --- a/mbfido/mbfindex.c +++ b/mbfido/mbfindex.c @@ -502,7 +502,7 @@ void HtmlIndex(char *Lang) int AreaNr = 0, j, k, x = 0; int aTotal = 0, inArea = 0, filenr; char *sAreas, *fn; - char linebuf[1024], outbuf[1024], desc[6400]; + char linebuf[1024], outbuf[1024], desc[6400], namebuf[1024]; time_t last = 0L, later; long fileptr = 0, fileptr1 = 0; struct _fdbarea *fdb_area = NULL; @@ -709,12 +709,14 @@ void HtmlIndex(char *Lang) Syslog('+', "Removed obsolete %s", linebuf); } + strcpy(linebuf, area.Name); + html_massage(linebuf, namebuf); sprintf(linebuf, "%s/%s%s/index.html", CFG.www_url, CFG.www_link2ftp, area.Path+strlen(CFG.ftp_base)); if (aSize > 1048576) sprintf(outbuf, "%ld Mb.", aSize / 1048576); else sprintf(outbuf, "%ld Kb.", aSize / 1024); - MacroVars("efghi", "dssds", AreaNr, linebuf, area.Name, aTotal, outbuf); + MacroVars("efghi", "dssds", AreaNr, linebuf, namebuf, aTotal, outbuf); if (last == 0L) MacroVars("j", "s", " "); else