mirror of
https://github.com/emikulic/darkhttpd.git
synced 2023-08-10 21:13:08 +03:00
Update darkhttpd.c
Open link in new tab and keep the list.
This commit is contained in:
parent
a981031e6f
commit
c74007c017
@ -1985,7 +1985,11 @@ static void generate_dir_listing(struct connection *conn, const char *path,
|
||||
|
||||
urlencode(list[i]->name, safe_url);
|
||||
|
||||
append(listing, "<a href=\"");
|
||||
if (list[i]->is_dir)
|
||||
append(listing, "<a href=\"");
|
||||
else {
|
||||
append(listing, "<a target='_blank' href=\"");
|
||||
}
|
||||
append(listing, safe_url);
|
||||
if (list[i]->is_dir)
|
||||
append(listing, "/");
|
||||
|
Loading…
Reference in New Issue
Block a user