mirror of
https://github.com/nginx/nginx.git
synced 2024-11-29 12:14:27 -06:00
fix directory test in try_files
This commit is contained in:
parent
7b5edd8ffe
commit
cd70a5225a
@ -3956,6 +3956,7 @@ ngx_http_core_try_files(ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
|
||||
if (tf[i].name.data[tf[i].name.len - 1] == '/') {
|
||||
tf[i].test_dir = 1;
|
||||
tf[i].name.len--;
|
||||
tf[i].name.data[tf[i].name.len] = '\0';
|
||||
}
|
||||
|
||||
n = ngx_http_script_variables_count(&tf[i].name);
|
||||
|
Loading…
Reference in New Issue
Block a user