diff --git a/ngx_http_fancyindex_module.c b/ngx_http_fancyindex_module.c index 10331a5..22948e6 100644 --- a/ngx_http_fancyindex_module.c +++ b/ngx_http_fancyindex_module.c @@ -772,7 +772,7 @@ make_content_buf( * sizedate * */ - len += ngx_sizeof_ssz("") + entry[i].name.len + entry[i].utf_len + alcf->name_length + ngx_sizeof_ssz(">") - + ngx_sizeof_ssz("") + + ngx_sizeof_ssz("") + 20 /* File size */ - + ngx_sizeof_ssz("") /* Date prefix */ + + ngx_sizeof_ssz("") /* Date prefix */ + ngx_sizeof_ssz("\n") /* Date suffix */ + 2 /* CR LF */ ; @@ -904,7 +904,7 @@ make_content_buf( if (r->uri.len > 1) { b->last = ngx_cpymem_ssz(b->last, "" - "last = ngx_cpymem(b->last, sort_url_args, @@ -912,14 +912,14 @@ make_content_buf( } b->last = ngx_cpymem_ssz(b->last, "\">Parent directory/" - "-" - "-" + "-" + "-" ""); } /* Entries for directories and files */ for (i = 0; i < entries.nelts; i++) { - b->last = ngx_cpymem_ssz(b->last, "last = ngx_cpymem_ssz(b->last, "last, @@ -967,7 +967,7 @@ make_content_buf( } if (len > alcf->name_length) { - b->last = ngx_cpymem_ssz(last, "..>"); + b->last = ngx_cpymem_ssz(last, "..>"); } else { if (entry[i].dir && alcf->name_length - len > 0) { @@ -975,7 +975,7 @@ make_content_buf( len++; } - b->last = ngx_cpymem_ssz(b->last, ""); + b->last = ngx_cpymem_ssz(b->last, ""); } if (alcf->exact_size) { @@ -1005,7 +1005,7 @@ make_content_buf( } ngx_gmtime(entry[i].mtime + tp->gmtoff * 60 * alcf->localtime, &tm); - b->last = ngx_cpymem_ssz(b->last, ""); + b->last = ngx_cpymem_ssz(b->last, ""); b->last = ngx_fancyindex_timefmt(b->last, &alcf->time_format, &tm); b->last = ngx_cpymem_ssz(b->last, "");