]> git.ipfire.org Git - thirdparty/dovecot/core.git/commit
lib-http: http-url - Fix handling of double slash in request target URL.
authorStephan Bosch <stephan.bosch@open-xchange.com>
Thu, 31 Oct 2019 08:07:42 +0000 (09:07 +0100)
committertimo.sirainen <timo.sirainen@open-xchange.com>
Wed, 6 Nov 2019 20:34:08 +0000 (20:34 +0000)
commitaa52ae31cc273847ffe833e9af8d8423b2918f0c
tree0c4ebd5b851fe0e9f721c62b711d375af0d1991a
parent379c4c2e26fff63525675f82fa269e622e7764ad
lib-http: http-url - Fix handling of double slash in request target URL.

A origin-form URL starting with double slash caused the initial path segment to
be erroneously recognized as the URL authority, making the path part
unexpectedly empty (NULL). This could cause the HTTP server to crash.
src/lib-http/http-url.c
src/lib-http/test-http-request-parser.c
src/lib-http/test-http-url.c