comparison src/http/modules/ngx_http_index_module.c @ 542:4c5d2c627a6c NGINX_0_8_17

nginx 0.8.17 *) Security: now "/../" are disabled in "Destination" request header line. *) Change: now $host variable value is always low case. *) Feature: the $ssl_session_id variable. *) Bugfix: socket leak; the bug had appeared in 0.8.11.
author Igor Sysoev <http://sysoev.ru>
date Mon, 28 Sep 2009 00:00:00 +0400
parents f39b9e29530d
children f7ec98e3caeb
comparison
equal deleted inserted replaced
541:b8ac674b0ec9 542:4c5d2c627a6c
220 220
221 if (of.err == 0) { 221 if (of.err == 0) {
222 return NGX_HTTP_INTERNAL_SERVER_ERROR; 222 return NGX_HTTP_INTERNAL_SERVER_ERROR;
223 } 223 }
224 224
225 if (of.err == NGX_ENOTDIR || of.err == NGX_EACCES) { 225 if (of.err == NGX_ENOTDIR
226 || of.err == NGX_ENAMETOOLONG
227 || of.err == NGX_EACCES)
228 {
226 return ngx_http_index_error(r, clcf, path.data, of.err); 229 return ngx_http_index_error(r, clcf, path.data, of.err);
227 } 230 }
228 231
229 if (!dir_tested) { 232 if (!dir_tested) {
230 rc = ngx_http_index_test_dir(r, clcf, path.data, name - 1); 233 rc = ngx_http_index_test_dir(r, clcf, path.data, name - 1);