mirror of
https://github.com/rkd77/elinks.git
synced 2025-01-03 14:57:44 -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("/\">");
|
printf("/\">");
|
||||||
if (*dircolor)
|
if (*dircolor)
|
||||||
printf("<font color=\"%s\"><b>", dircolor);
|
printf("<font color=\"%s\"><b>", dircolor);
|
||||||
printf("%s/", fentry->name);
|
printf("%s", fentry->name);
|
||||||
if (*dircolor)
|
if (*dircolor)
|
||||||
printf("</b></font>");
|
printf("</b></font>");
|
||||||
} else {
|
} else {
|
||||||
printf("/\">%s", fentry->name);
|
printf("\">%s", fentry->name);
|
||||||
}
|
}
|
||||||
puts("</a>");
|
puts("</a>");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user