X-Git-Url: http://www.dolda2000.com/gitweb/?p=ashd.git;a=blobdiff_plain;f=src%2Fhtls.c;h=f51da938daf87cc87b598382e45cc26aae495e01;hp=907187ccbd83d0dd8f93d4e4812cfe1bb1fc991d;hb=9e70ef793ddcf51edc0f6489eb6f70762380afc0;hpb=060376d428e8693e817ac0eae4710ce222d14e07 diff --git a/src/htls.c b/src/htls.c index 907187c..f51da93 100644 --- a/src/htls.c +++ b/src/htls.c @@ -84,13 +84,14 @@ static void head(char *name, struct charbuf *dst) if(stylesheet) { bprintf(dst, "\n", htmlquote(stylesheet)); } else { - bprintf(dst, "\n"); } @@ -149,8 +150,9 @@ static void mkindex(char *name, DIR *dir, struct charbuf *dst) if(dirbuf.b[i].w) bprintf(dst, " writable"); bprintf(dst, "\">"); - fn = htmlquote(dirbuf.b[i].name); - bprintf(dst, "%s", fn, fn); + bprintf(dst, "", htmlquote(urlquote(dirbuf.b[i].name))); + bprintf(dst, "%s", htmlquote(dirbuf.b[i].name)); + bprintf(dst, ""); if(dispsize) { bprintf(dst, ""); if(!S_ISDIR(dirbuf.b[i].sb.st_mode))