summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--NEWS1
-rw-r--r--src/mod_dirlisting.c4
2 files changed, 3 insertions, 2 deletions
diff --git a/NEWS b/NEWS
index 48ccaa6d..cc6f35f9 100644
--- a/NEWS
+++ b/NEWS
@@ -71,6 +71,7 @@ NEWS
* [mod_expire] reset caching response headers for error docs (fixes #1919)
* [mod_status] page refresh option (fixes #2170)
* [mod_status] table w/ count of con states (fixes #2427)
+ * [mod_dirlisting] class for dir <tr> (fixes #2304)
- 1.4.39 - 2016-01-02
* [core] fix memset_s call (fixes #2698)
diff --git a/src/mod_dirlisting.c b/src/mod_dirlisting.c
index 717f4e4f..e373463d 100644
--- a/src/mod_dirlisting.c
+++ b/src/mod_dirlisting.c
@@ -567,7 +567,7 @@ static void http_list_directory_header(server *srv, connection *con, plugin_data
"</tr>"
"</thead>\n"
"<tbody>\n"
- "<tr>"
+ "<tr class=\"d\">"
"<td class=\"n\"><a href=\"../\">Parent Directory</a>/</td>"
"<td class=\"m\">&nbsp;</td>"
"<td class=\"s\">- &nbsp;</td>"
@@ -801,7 +801,7 @@ static int http_list_directory(server *srv, connection *con, plugin_data *p, buf
strftime(datebuf, sizeof(datebuf), "%Y-%b-%d %H:%M:%S", localtime(&(tmp->mtime)));
#endif
- buffer_append_string_len(out, CONST_STR_LEN("<tr><td class=\"n\"><a href=\""));
+ buffer_append_string_len(out, CONST_STR_LEN("<tr class=\"d\"><td class=\"n\"><a href=\""));
buffer_append_string_encoded(out, DIRLIST_ENT_NAME(tmp), tmp->namelen, ENCODING_REL_URI_PART);
buffer_append_string_len(out, CONST_STR_LEN("/\">"));
buffer_append_string_encoded(out, DIRLIST_ENT_NAME(tmp), tmp->namelen, ENCODING_MINIMAL_XML);