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:
parent
d580483c6b
commit
e1ae6a0cdf
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user