Mercurial > hg > nginx-quic
comparison src/http/ngx_http_core_module.c @ 5416:ddf740b9fdf6 stable-1.4
Fixed try_files with empty argument (ticket #390).
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Fri, 23 Aug 2013 22:18:39 +0400 |
parents | 4bcd35e7a0f0 |
children |
comparison
equal
deleted
inserted
replaced
5415:f7e8e6bd5379 | 5416:ddf740b9fdf6 |
---|---|
4756 | 4756 |
4757 for (i = 0; i < cf->args->nelts - 1; i++) { | 4757 for (i = 0; i < cf->args->nelts - 1; i++) { |
4758 | 4758 |
4759 tf[i].name = value[i + 1]; | 4759 tf[i].name = value[i + 1]; |
4760 | 4760 |
4761 if (tf[i].name.data[tf[i].name.len - 1] == '/') { | 4761 if (tf[i].name.len > 0 |
4762 && tf[i].name.data[tf[i].name.len - 1] == '/') | |
4763 { | |
4762 tf[i].test_dir = 1; | 4764 tf[i].test_dir = 1; |
4763 tf[i].name.len--; | 4765 tf[i].name.len--; |
4764 tf[i].name.data[tf[i].name.len] = '\0'; | 4766 tf[i].name.data[tf[i].name.len] = '\0'; |
4765 } | 4767 } |
4766 | 4768 |