Mercurial > hg > nginx
comparison src/http/ngx_http_core_module.c @ 1546:2956fb9b7dcb
omit trailing zero in directory name
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Thu, 27 Sep 2007 09:39:29 +0000 |
parents | 56f1ea5baabb |
children | fe11e2a3946d |
comparison
equal
deleted
inserted
replaced
1545:2d8fab47dd89 | 1546:2956fb9b7dcb |
---|---|
894 | 894 |
895 if (r->uri.data[r->uri.len - 1] == '/' && !r->zero_in_uri) { | 895 if (r->uri.data[r->uri.len - 1] == '/' && !r->zero_in_uri) { |
896 | 896 |
897 if (ngx_http_map_uri_to_path(r, &path, &root, 0) != NULL) { | 897 if (ngx_http_map_uri_to_path(r, &path, &root, 0) != NULL) { |
898 ngx_log_error(NGX_LOG_ERR, r->connection->log, 0, | 898 ngx_log_error(NGX_LOG_ERR, r->connection->log, 0, |
899 "directory index of \"%V\" is forbidden", &path); | 899 "directory index of \"%s\" is forbidden", path.data); |
900 } | 900 } |
901 | 901 |
902 ngx_http_finalize_request(r, NGX_HTTP_FORBIDDEN); | 902 ngx_http_finalize_request(r, NGX_HTTP_FORBIDDEN); |
903 return NGX_OK; | 903 return NGX_OK; |
904 } | 904 } |