diff options
author | corvid <corvid@lavabit.com> | 2010-08-22 06:06:47 +0000 |
---|---|---|
committer | corvid <corvid@lavabit.com> | 2010-08-22 06:06:47 +0000 |
commit | 58f69677409b016d615143d02868ac7a18496779 (patch) | |
tree | 7e61de3ae236548c48072c4906c297ff995a218e /dpi | |
parent | 5f0fc0e48b8cbee7e1795935da0abff6627fd498 (diff) |
file dpi close pre tag for empty directory listing
Diffstat (limited to 'dpi')
-rw-r--r-- | dpi/file.c | 10 |
1 files changed, 4 insertions, 6 deletions
@@ -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"); |