[mod_dirlisting] class for dir <tr> (fixes #2304)
x-ref: "special class for directories tr's in directory listing" https://redmine.lighttpd.net/issues/2304personal/stbuehler/mod-csrf-old
parent
dc9f95c75d
commit
c63427c999
1
NEWS
1
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)
|
||||
|
|
|
@ -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\"> </td>"
|
||||
"<td class=\"s\">- </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);
|
||||
|
|
Loading…
Reference in New Issue