Skip to content

Commit

Permalink
Fixed matching If tags.
Browse files Browse the repository at this point in the history
  • Loading branch information
arut committed Dec 17, 2018
1 parent 186faa6 commit f5e3088
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ngx_http_dav_ext_module.c
Original file line number Diff line number Diff line change
Expand Up @@ -1555,7 +1555,9 @@ ngx_http_dav_ext_if(ngx_http_request_t *r, ngx_str_t *uri)

p++;

if (tag.len > uri->len
if (tag.len == 0
|| tag.len > uri->len
|| (tag.len < uri->len && tag.data[tag.len - 1] != '/')
|| ngx_memcmp(tag.data, uri->data, tag.len))
{
ngx_log_debug1(NGX_LOG_DEBUG_HTTP, r->connection->log, 0,
Expand Down

0 comments on commit f5e3088

Please sign in to comment.