Project

General

Profile

Bug #2974 ยป lighttpd_mod_auth_digest-1.4.53.patch

xvh, 2019-08-22 12:55

View differences:

src/mod_auth.c 2019-08-22 10:30:49.710351000 +0200
const size_t ulen = strlen(uri);
const size_t rlen = buffer_string_length(con->request.orig_uri);
if (!buffer_is_equal_string(con->request.orig_uri, uri, ulen)
&& !(rlen < ulen && 0 == memcmp(con->request.orig_uri->ptr, uri, rlen) && uri[rlen] == '?')) {
/* Handle .NET HttpClient incorrect implementation which does not include query in digest uri parameter */
&& !(ulen < rlen && 0 == memcmp(con->request.orig_uri->ptr, uri, ulen) && con->request.orig_uri->ptr[ulen] == '?')) {
log_error_write(srv, __FILE__, __LINE__, "sbsssB",
"digest: auth failed: uri mismatch (", con->request.orig_uri, "!=", uri, "), IP:", con->dst_addr_buf);
buffer_free(b);
    (1-1/1)