From 37c5e00b8e827be61f286eba9c92c7adf3151b43 Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Thu, 30 Oct 2014 17:22:43 +0100 Subject: [PATCH 1/1] path should be forgotten --- php_http_url.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/php_http_url.c b/php_http_url.c index e26a45d..23dec9f 100644 --- a/php_http_url.c +++ b/php_http_url.c @@ -673,6 +673,8 @@ static const char *parse_path(php_http_url_t *url) /* did we have any path component ? */ if (tmp != url->ptr) { url->buffer[url->offset++] = 0; + } else { + url->path = NULL; } return url->ptr; -- 2.30.2