From 51fad316cdde730c08008ad775c519fb6aa446ad Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Mon, 8 Dec 2008 14:05:21 +0000 Subject: skip protected symlinks in autoindex --- src/http/modules/ngx_http_autoindex_module.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') diff --git a/src/http/modules/ngx_http_autoindex_module.c b/src/http/modules/ngx_http_autoindex_module.c index 86b7c0b30..c8137ad68 100644 --- a/src/http/modules/ngx_http_autoindex_module.c +++ b/src/http/modules/ngx_http_autoindex_module.c @@ -299,6 +299,11 @@ ngx_http_autoindex_handler(ngx_http_request_t *r) if (err != NGX_ENOENT) { ngx_log_error(NGX_LOG_CRIT, r->connection->log, err, ngx_de_info_n " \"%s\" failed", filename); + + if (err == NGX_EACCES) { + continue; + } + return ngx_http_autoindex_error(r, &dir, &path); } -- cgit