Mercurial > hg > nginx-vendor-1-0
comparison src/http/modules/ngx_http_autoindex_handler.c @ 16:74b1868dd3cd NGINX_0_1_8
nginx 0.1.8
*) Bugfix: in the ngx_http_autoindex_module if the long file names were
in the listing.
*) Feature: the "^~" modifier in the location directive.
*) Feature: the proxy_max_temp_file_size directive.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Sat, 20 Nov 2004 00:00:00 +0300 |
parents | 46833bd150cb |
children | 8b6db3bda591 |
comparison
equal
deleted
inserted
replaced
15:0503cb60c4e4 | 16:74b1868dd3cd |
---|---|
302 for (i = 0; i < entries.nelts; i++) { | 302 for (i = 0; i < entries.nelts; i++) { |
303 len += sizeof("<a href=\"") - 1 | 303 len += sizeof("<a href=\"") - 1 |
304 + 1 /* 1 is for "/" */ | 304 + 1 /* 1 is for "/" */ |
305 + entry[i].name.len + entry[i].escape | 305 + entry[i].name.len + entry[i].escape |
306 + sizeof("\">") - 1 | 306 + sizeof("\">") - 1 |
307 + NGX_HTTP_AUTOINDEX_NAME_LEN | 307 + NGX_HTTP_AUTOINDEX_NAME_LEN + sizeof(">") - 2 |
308 + sizeof("</a>") - 1 | 308 + sizeof("</a>") - 1 |
309 + 1 | 309 + sizeof(" 28-Sep-1970 12:00 ") - 1 |
310 + sizeof("28-Sep-1970 12:00 ") - 1 | |
311 + sizeof("1023G") - 1 | 310 + sizeof("1023G") - 1 |
312 + 2; | 311 + 2; |
313 } | 312 } |
314 | 313 |
315 if (!(b = ngx_create_temp_buf(r->pool, len))) { | 314 if (!(b = ngx_create_temp_buf(r->pool, len))) { |