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:
parent
cf429c4ecc
commit
7d1ff4fbf1
@ -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>");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user