comparison src/http/ngx_http_core_module.c @ 1613:fd1fca184e67 stable-0.5

r1547 merge: omit trailing zero in directory name
author Igor Sysoev <igor@sysoev.ru>
date Mon, 29 Oct 2007 15:08:01 +0000
parents 9b10ba85b249
children cacb565c554e
comparison
equal deleted inserted replaced
1612:d72f8b48dd87 1613:fd1fca184e67
875 875
876 if (r->uri.data[r->uri.len - 1] == '/' && !r->zero_in_uri) { 876 if (r->uri.data[r->uri.len - 1] == '/' && !r->zero_in_uri) {
877 877
878 if (ngx_http_map_uri_to_path(r, &path, &root, 0) != NULL) { 878 if (ngx_http_map_uri_to_path(r, &path, &root, 0) != NULL) {
879 ngx_log_error(NGX_LOG_ERR, r->connection->log, 0, 879 ngx_log_error(NGX_LOG_ERR, r->connection->log, 0,
880 "directory index of \"%V\" is forbidden", &path); 880 "directory index of \"%s\" is forbidden", path.data);
881 } 881 }
882 882
883 ngx_http_finalize_request(r, NGX_HTTP_FORBIDDEN); 883 ngx_http_finalize_request(r, NGX_HTTP_FORBIDDEN);
884 return NGX_OK; 884 return NGX_OK;
885 } 885 }