aboutsummaryrefslogtreecommitdiff
path: root/src/http/ngx_http_core_module.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2009-03-20 16:47:23 +0000
committerIgor Sysoev <igor@sysoev.ru>2009-03-20 16:47:23 +0000
commitcd70a5225a21ef660c653568b1f0d3c5ced74f01 (patch)
tree2b39fa7dc3f5b3bfc370921e173c52b189e5d7f2 /src/http/ngx_http_core_module.c
parent7b5edd8ffed2a8855bcdced02e7379eac0396ab8 (diff)
downloadnginx-cd70a5225a21ef660c653568b1f0d3c5ced74f01.tar.gz
nginx-cd70a5225a21ef660c653568b1f0d3c5ced74f01.zip
fix directory test in try_files
Diffstat (limited to 'src/http/ngx_http_core_module.c')
-rw-r--r--src/http/ngx_http_core_module.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/http/ngx_http_core_module.c b/src/http/ngx_http_core_module.c
index beb066692..4350ab157 100644
--- a/src/http/ngx_http_core_module.c
+++ b/src/http/ngx_http_core_module.c
@@ -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);