Commit 0d00cd51 authored by Sergey Lyubka's avatar Sergey Lyubka

Fix #356

parent b216210a
...@@ -3077,10 +3077,9 @@ static void print_dir_entry(const struct dir_entry *de) { ...@@ -3077,10 +3077,9 @@ static void print_dir_entry(const struct dir_entry *de) {
strftime(mod, sizeof(mod), "%d-%b-%Y %H:%M", localtime(&de->st.st_mtime)); strftime(mod, sizeof(mod), "%d-%b-%Y %H:%M", localtime(&de->st.st_mtime));
mg_url_encode(de->file_name, href, sizeof(href)); mg_url_encode(de->file_name, href, sizeof(href));
mg_printf_data(&de->conn->mg_conn, mg_printf_data(&de->conn->mg_conn,
"<tr><td><a href=\"%s%s%s\">%s%s</a></td>" "<tr><td><a href=\"%s%s\">%s%s</a></td>"
"<td>&nbsp;%s</td><td>&nbsp;&nbsp;%s</td></tr>\n", "<td>&nbsp;%s</td><td>&nbsp;&nbsp;%s</td></tr>\n",
de->conn->mg_conn.uri, href, slash, de->file_name, slash, href, slash, de->file_name, slash, mod, size);
mod, size);
} }
// Sort directory entries by size, or name, or modification time. // Sort directory entries by size, or name, or modification time.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment