mirror of
https://github.com/nginx/nginx.git
synced 2025-06-21 05:10:51 +08: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] == '/') {
|
if (tf[i].name.data[tf[i].name.len - 1] == '/') {
|
||||||
tf[i].test_dir = 1;
|
tf[i].test_dir = 1;
|
||||||
tf[i].name.len--;
|
tf[i].name.len--;
|
||||||
|
tf[i].name.data[tf[i].name.len] = '\0';
|
||||||
}
|
}
|
||||||
|
|
||||||
n = ngx_http_script_variables_count(&tf[i].name);
|
n = ngx_http_script_variables_count(&tf[i].name);
|
||||||
|
Loading…
Reference in New Issue
Block a user