1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00

Only add ending slash to directory URLs

Not even to directory names. We don't do that for file: or ftp: protocol.

Fixes: af2cc87054
This commit is contained in:
Jonas Fonseca 2006-01-29 18:35:59 +01:00 committed by Jonas Fonseca
parent cf429c4ecc
commit 7d1ff4fbf1

View File

@ -89,11 +89,11 @@ display_entry(FSP_RDENTRY *fentry, unsigned char dircolor[])
printf("/\">");
if (*dircolor)
printf("<font color=\"%s\"><b>", dircolor);
printf("%s/", fentry->name);
printf("%s", fentry->name);
if (*dircolor)
printf("</b></font>");
} else {
printf("/\">%s", fentry->name);
printf("\">%s", fentry->name);
}
puts("</a>");
}