mirror of
https://github.com/nginx/nginx.git
synced 2024-12-18 21:23:36 -06:00
update r3201: ngx_http_random_index_module should behave consistently
in spite of the dirent.d_type presence
This commit is contained in:
parent
3f438068eb
commit
73a9c44441
@ -175,7 +175,7 @@ ngx_http_random_index_handler(ngx_http_request_t *r)
|
||||
|
||||
len = ngx_de_namelen(&dir);
|
||||
|
||||
if (dir.type == 0) {
|
||||
if (dir.type == 0 || ngx_de_is_link(&dir)) {
|
||||
|
||||
/* 1 byte for '/' and 1 byte for terminating '\0' */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user