1
0
mirror of https://github.com/rkd77/elinks.git synced 2025-02-02 15:09:23 -05:00

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

This commit is contained in:
witekfl 2006-01-29 13:22:05 +01:00 committed by Jonas Fonseca
parent d580483c6b
commit e1ae6a0cdf

View File

@ -140,9 +140,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;