mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-28 20:58:31 +00:00
Fix #356
This commit is contained in:
1 parent
b216210a13
commit
0d00cd51e6
1 file changed
+2
-3
+2
-3
@@ -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> %s</td><td> %s</td></tr>\n",
|
"<td> %s</td><td> %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.
|
||||||
|
|||||||
Reference in new issue
Block a user