Skip to content

Commit

Permalink
Fixed config parsing of the last try_files parameter.
Browse files Browse the repository at this point in the history
  • Loading branch information
chobits committed Nov 30, 2016
1 parent c81d77a commit 4889d4d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/http/ngx_http_core_module.c
Original file line number Diff line number Diff line change
@@ -5316,7 +5316,8 @@ ngx_http_core_try_files(ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
tf[i].name = value[i + 1];

if (tf[i].name.len > 0
&& tf[i].name.data[tf[i].name.len - 1] == '/')
&& tf[i].name.data[tf[i].name.len - 1] == '/'
&& i + 2 < cf->args->nelts)
{
tf[i].test_dir = 1;
tf[i].name.len--;

0 comments on commit 4889d4d

Please sign in to comment.