comparison src/http/ngx_http_core_module.c @ 530: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 0161f3197817
children f7ec98e3caeb
comparison
equal deleted inserted replaced
529:b8ac674b0ec9 530:4c5d2c627a6c
992 if (r->uri_changes == 0) { 992 if (r->uri_changes == 0) {
993 ngx_log_error(NGX_LOG_ERR, r->connection->log, 0, 993 ngx_log_error(NGX_LOG_ERR, r->connection->log, 0,
994 "rewrite or internal redirection cycle " 994 "rewrite or internal redirection cycle "
995 "while processing \"%V\"", &r->uri); 995 "while processing \"%V\"", &r->uri);
996 996
997 r->main->count++;
998 ngx_http_finalize_request(r, NGX_HTTP_INTERNAL_SERVER_ERROR); 997 ngx_http_finalize_request(r, NGX_HTTP_INTERNAL_SERVER_ERROR);
999 return NGX_OK; 998 return NGX_OK;
1000 } 999 }
1001 1000
1002 r->phase_handler = ph->next; 1001 r->phase_handler = ph->next;
1231 of.events = clcf->open_file_cache_events; 1230 of.events = clcf->open_file_cache_events;
1232 1231
1233 if (ngx_open_cached_file(clcf->open_file_cache, &path, &of, r->pool) 1232 if (ngx_open_cached_file(clcf->open_file_cache, &path, &of, r->pool)
1234 != NGX_OK) 1233 != NGX_OK)
1235 { 1234 {
1236 if (of.err != NGX_ENOENT && of.err != NGX_ENOTDIR) { 1235 if (of.err != NGX_ENOENT
1236 && of.err != NGX_ENOTDIR
1237 && of.err != NGX_ENAMETOOLONG)
1238 {
1237 ngx_log_error(NGX_LOG_CRIT, r->connection->log, of.err, 1239 ngx_log_error(NGX_LOG_CRIT, r->connection->log, of.err,
1238 "%s \"%s\" failed", of.failed, path.data); 1240 "%s \"%s\" failed", of.failed, path.data);
1239 } 1241 }
1240 1242
1241 continue; 1243 continue;