diff --git a/ngx_http_fancyindex_module.c b/ngx_http_fancyindex_module.c index 823f86e..2e190f9 100644 --- a/ngx_http_fancyindex_module.c +++ b/ngx_http_fancyindex_module.c @@ -737,16 +737,16 @@ make_content_buf( tp = ngx_timeofday(); /* "Parent dir" entry, always first if displayed */ - if(r->uri.len > 1){ - b->last = ngx_cpymem_ssz(b->last, - "" - "last = ngx_cpymem(b->last, + if (r->uri.len > 1) { + b->last = ngx_cpymem_ssz(b->last, + "" + "last = ngx_cpymem(b->last, sort_url_args, ngx_sizeof_ssz("?C=N&O=A")); - } - b->last = ngx_cpymem_ssz(b->last, + } + b->last = ngx_cpymem_ssz(b->last, "\">Parent directory/" "-" "-"