From 0d00cd51e6d7513a5186496f0adbf12ec4878ca9 Mon Sep 17 00:00:00 2001 From: Sergey Lyubka <valenok@gmail.com> Date: Sun, 23 Mar 2014 19:59:03 +0000 Subject: [PATCH] Fix #356 --- mongoose.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/mongoose.c b/mongoose.c index 932af5e09..f51d2ed22 100644 --- a/mongoose.c +++ b/mongoose.c @@ -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)); mg_url_encode(de->file_name, href, sizeof(href)); 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", - de->conn->mg_conn.uri, href, slash, de->file_name, slash, - mod, size); + href, slash, de->file_name, slash, mod, size); } // Sort directory entries by size, or name, or modification time. -- GitLab