Added title attribute for each dir or file

pull/31/head
janglapuk 2015-08-30 10:29:30 +08:00
parent 69105c65d8
commit 07c4288e64
1 changed files with 5 additions and 0 deletions

View File

@ -739,6 +739,8 @@ make_content_buf(
len += ngx_sizeof_ssz("<tr><td><a href=\"")
+ entry[i].name.len + entry[i].escape /* Escaped URL */
+ ngx_sizeof_ssz("?C=x&amp;O=y") /* URL sorting arguments */
+ ngx_sizeof_ssz("\" title=\"")
+ entry[i].name.len + entry[i].utf_len
+ ngx_sizeof_ssz("\">")
+ entry[i].name.len + entry[i].utf_len
+ alcf->name_length + ngx_sizeof_ssz("&gt;")
@ -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++ = '>';