]> git.kaiwu.me - nginx.git/commitdiff
omit trailing zero in directory name
authorIgor Sysoev <igor@sysoev.ru>
Thu, 27 Sep 2007 09:39:29 +0000 (09:39 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Thu, 27 Sep 2007 09:39:29 +0000 (09:39 +0000)
src/http/ngx_http_core_module.c

index f93c6a28cc47b1c09106eafff346747523e176d1..a99fbca835f9f38314d5e4ed63fa76c49f7e4b74 100644 (file)
@@ -896,7 +896,7 @@ ngx_http_core_content_phase(ngx_http_request_t *r,
 
         if (ngx_http_map_uri_to_path(r, &path, &root, 0) != NULL) {
             ngx_log_error(NGX_LOG_ERR, r->connection->log, 0,
-                          "directory index of \"%V\" is forbidden", &path);
+                          "directory index of \"%s\" is forbidden", path.data);
         }
 
         ngx_http_finalize_request(r, NGX_HTTP_FORBIDDEN);