From 9e534e07747a73b22fd55fe89fcb5f087cc156a5 Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Wed, 1 Apr 2009 16:02:24 +0000 Subject: r2372 merge: skip protected symlinks in autoindex --- src/http/modules/ngx_http_autoindex_module.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/http/modules') diff --git a/src/http/modules/ngx_http_autoindex_module.c b/src/http/modules/ngx_http_autoindex_module.c index 0ff500998..d4d9ac3b2 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