1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-09-28 03:06:20 -04:00

Added slash to base href when directory didn't end with '/'

This commit is contained in:
2006-01-29 13:22:05 +01:00
parent 8cc828bf7c
commit 46aae704eb

View File

@ -141,9 +141,10 @@ fsp_directory(FSP_SESSION *ses, struct uri *uri)
fclose(stderr);
add_html_to_string(&buf, uristring, strlen(uristring));
printf("<html><head><title>%s</title><base href=\"%s\">"
"</head><body><h2>FSP directory %s</h2><pre>",
buf.source, uristring, buf.source);
printf("<html><head><title>%s</title><base href=\"%s", buf.source,
uristring);
if (buf.source[buf.length - 1] != '/') printf("/");
printf("\"></head><body><h2>FSP directory %s</h2><pre>", buf.source);
dir = fsp_opendir(ses, data);
if (!dir) goto end;