From 07c4288e6423f362d93f395197502961d7c72e12 Mon Sep 17 00:00:00 2001 From: janglapuk Date: Sun, 30 Aug 2015 10:29:30 +0800 Subject: [PATCH] Added title attribute for each dir or file --- ngx_http_fancyindex_module.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ngx_http_fancyindex_module.c b/ngx_http_fancyindex_module.c index 39c598d..0bc306e 100644 --- a/ngx_http_fancyindex_module.c +++ b/ngx_http_fancyindex_module.c @@ -739,6 +739,8 @@ make_content_buf( len += ngx_sizeof_ssz("") + entry[i].name.len + entry[i].utf_len + alcf->name_length + ngx_sizeof_ssz(">") @@ -888,6 +890,9 @@ make_content_buf( } } + *b->last++ = '"'; + b->last = ngx_cpymem_ssz(b->last, " title=\""); + b->last = ngx_cpymem_str(b->last, entry[i].name); *b->last++ = '"'; *b->last++ = '>';