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
713 713
		const size_t ulen = strlen(uri);
714 714
		const size_t rlen = buffer_string_length(con->request.orig_uri);
715 715
		if (!buffer_is_equal_string(con->request.orig_uri, uri, ulen)
716
		    && !(rlen < ulen && 0 == memcmp(con->request.orig_uri->ptr, uri, rlen) && uri[rlen] == '?')) {
716
			/* Handle .NET HttpClient incorrect implementation which does not include query in digest uri parameter */
717
			&& !(ulen < rlen && 0 == memcmp(con->request.orig_uri->ptr, uri, ulen) && con->request.orig_uri->ptr[ulen] == '?')) {
717 718
			log_error_write(srv, __FILE__, __LINE__, "sbsssB",
718 719
					"digest: auth failed: uri mismatch (", con->request.orig_uri, "!=", uri, "), IP:", con->dst_addr_buf);
719 720
			buffer_free(b);
    (1-1/1)