Mailing List Archive

bugfix in mod_dir.c
Here's a small patch to mod_dir.c : when names were over 21 chars, the
end of the anchor (</A>) got munged by rprintf which resulted in buggy HTML.
This patch works with Apache 0.8.0 or Shambhala.

*** ../shambhala.orig/mod_dir.c Mon Jul 10 16:10:31 1995
--- mod_dir.c Mon Jul 17 01:11:22 1995
***************
*** 625,631 ****
if(dir_opts & ICONS_ARE_LINKS)
rprintf (r, "</A>");

! rprintf(r," %s%-27.27s", anchor, t2);
if(!(dir_opts & SUPPRESS_LAST_MOD)) {
if(ar[x]->lm != -1) {
char time[MAX_STRING_LEN];
--- 625,631 ----
if(dir_opts & ICONS_ARE_LINKS)
rprintf (r, "</A>");

! rprintf(r," %s%-27.29s", anchor, t2);
if(!(dir_opts & SUPPRESS_LAST_MOD)) {
if(ar[x]->lm != -1) {
char time[MAX_STRING_LEN];