mirror of
https://github.com/nginx/nginx.git
synced 2026-07-10 02:47:15 +00:00
r2372 merge:
skip protected symlinks in autoindex
This commit is contained in:
parent
ebb8d120d5
commit
9e534e0774
1 changed files with 5 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue