diff src/http/modules/ngx_http_autoindex_module.c @ 5218:f026adb935ad

Fixed error logging. The provided argument list didn't follow a used format string.
author Sergey Kandaurov <pluknet@nginx.com>
date Tue, 21 May 2013 17:30:19 +0400
parents e9d188e295cf
children 1a9700ef9725
line wrap: on
line diff
--- a/src/http/modules/ngx_http_autoindex_module.c
+++ b/src/http/modules/ngx_http_autoindex_module.c
@@ -357,7 +357,7 @@ ngx_http_autoindex_handler(ngx_http_requ
 
     if (ngx_close_dir(&dir) == NGX_ERROR) {
         ngx_log_error(NGX_LOG_ALERT, r->connection->log, ngx_errno,
-                      ngx_close_dir_n " \"%s\" failed", &path);
+                      ngx_close_dir_n " \"%V\" failed", &path);
     }
 
     escape_html = ngx_escape_html(NULL, r->uri.data, r->uri.len);