Mercurial > hg > nginx
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 Thu Mar 19 16:07:40 2009 +0000 +++ b/src/http/ngx_http_core_module.c Fri Mar 20 16:47:23 2009 +0000 @@ -3956,6 +3956,7 @@ 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);