X-Git-Url: http://www.dolda2000.com/gitweb/?p=ashd.git;a=blobdiff_plain;f=src%2Fhtls.c;h=d2db5f44125de2adff32266f2cf69c33e79e9de6;hp=907187ccbd83d0dd8f93d4e4812cfe1bb1fc991d;hb=9f1a1144068445207fddd94a393878c47faba68a;hpb=6d94a5f6850e75a9d96e9a54845fea5ffe3ed024 diff --git a/src/htls.c b/src/htls.c index 907187c..d2db5f4 100644 --- a/src/htls.c +++ b/src/htls.c @@ -149,8 +149,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))