mirror of
https://github.com/nginx/nginx.git
synced 2025-02-25 18:55:26 -06:00
skip protected symlinks in autoindex
This commit is contained in:
parent
5bf2087462
commit
51fad316cd
@ -299,6 +299,11 @@ ngx_http_autoindex_handler(ngx_http_request_t *r)
|
|||||||
if (err != NGX_ENOENT) {
|
if (err != NGX_ENOENT) {
|
||||||
ngx_log_error(NGX_LOG_CRIT, r->connection->log, err,
|
ngx_log_error(NGX_LOG_CRIT, r->connection->log, err,
|
||||||
ngx_de_info_n " \"%s\" failed", filename);
|
ngx_de_info_n " \"%s\" failed", filename);
|
||||||
|
|
||||||
|
if (err == NGX_EACCES) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
return ngx_http_autoindex_error(r, &dir, &path);
|
return ngx_http_autoindex_error(r, &dir, &path);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user