aboutsummaryrefslogtreecommitdiff
path: root/dpi
diff options
context:
space:
mode:
authorcorvid <corvid@lavabit.com>2010-08-22 06:06:47 +0000
committercorvid <corvid@lavabit.com>2010-08-22 06:06:47 +0000
commit58f69677409b016d615143d02868ac7a18496779 (patch)
tree7e61de3ae236548c48072c4906c297ff995a218e /dpi
parent5f0fc0e48b8cbee7e1795935da0abff6627fd498 (diff)
file dpi close pre tag for empty directory listing
Diffstat (limited to 'dpi')
-rw-r--r--dpi/file.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/dpi/file.c b/dpi/file.c
index 1e70e9ef..64f06bf5 100644
--- a/dpi/file.c
+++ b/dpi/file.c
@@ -478,12 +478,10 @@ static void File_send_dir(ClientInfo *client)
File_info2html(client, dList_nth_data(Ddir->flist,n), n+1);
}
- if (dList_length(Ddir->flist)) {
- if (client->old_style) {
- a_Dpip_dsh_write_str(client->sh, 0, "</pre>\n");
- } else {
- a_Dpip_dsh_write_str(client->sh, 0, "</table>\n");
- }
+ if (client->old_style) {
+ a_Dpip_dsh_write_str(client->sh, 0, "</pre>\n");
+ } else if (dList_length(Ddir->flist)) {
+ a_Dpip_dsh_write_str(client->sh, 0, "</table>\n");
}
a_Dpip_dsh_write_str(client->sh, 1, "</BODY></HTML>\n");