changeset 2584:91e287d78d90

fix directory test in try_files
author Igor Sysoev <igor@sysoev.ru>
date Fri, 20 Mar 2009 16:47:23 +0000
parents 1fb5e7e05a4e
children d0a07e5710b5
files src/http/ngx_http_core_module.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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, 
         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);