Skip to content

Commit f5e3088

Browse files
committed
Fixed matching If tags.
1 parent 186faa6 commit f5e3088

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ngx_http_dav_ext_module.c

+3-1
Original file line numberDiff line numberDiff line change
@@ -1555,7 +1555,9 @@ ngx_http_dav_ext_if(ngx_http_request_t *r, ngx_str_t *uri)
15551555

15561556
p++;
15571557

1558-
if (tag.len > uri->len
1558+
if (tag.len == 0
1559+
|| tag.len > uri->len
1560+
|| (tag.len < uri->len && tag.data[tag.len - 1] != '/')
15591561
|| ngx_memcmp(tag.data, uri->data, tag.len))
15601562
{
15611563
ngx_log_debug1(NGX_LOG_DEBUG_HTTP, r->connection->log, 0,

0 commit comments

Comments
 (0)