Fixed html download problems with long filenames

This commit is contained in:
Michiel Broek 2004-06-07 11:49:11 +00:00
parent adb66cdb9a
commit 03c4291cf0
2 changed files with 7 additions and 3 deletions

View File

@ -23,6 +23,10 @@ v0.61.0 06-Jun-2004.
mbtask:
Prepared for ICM flag (FSP-1033). (Partly).
mbfile:
The filenames in the html pages are now the long filenames.
This fixes download problems with some mangled 8.3 filenames.
v0.60.0 09-Feb-2004 - 04-Jun-2004

View File

@ -645,13 +645,13 @@ void HtmlIndex(char *Lang)
}
}
sprintf(outbuf, "%s/%s%s/%s", CFG.www_url, CFG.www_link2ftp,
area.Path+strlen(CFG.ftp_base), fdb.Name);
area.Path+strlen(CFG.ftp_base), fdb.LName);
sprintf(linebuf, "%s/%s%s/.%s", CFG.www_url, CFG.www_link2ftp,
area.Path+strlen(CFG.ftp_base), fdb.Name);
area.Path+strlen(CFG.ftp_base), fdb.LName);
MacroVars("fghi", "dsss", 1, outbuf, fdb.LName, linebuf);
} else {
sprintf(outbuf, "%s/%s%s/%s", CFG.www_url, CFG.www_link2ftp,
area.Path+strlen(CFG.ftp_base), fdb.Name);
area.Path+strlen(CFG.ftp_base), fdb.LName);
MacroVars("fghi", "dsss", 0, outbuf, fdb.LName, "");
}