path should be forgotten
authorMichael Wallner <mike@php.net>
Thu, 30 Oct 2014 16:22:43 +0000 (17:22 +0100)
committerMichael Wallner <mike@php.net>
Thu, 6 Nov 2014 08:12:56 +0000 (09:12 +0100)
php_http_url.c

index e26a45d25c4cf4399d31821aa1535491f54013f0..23dec9f1968aa9b9964ed9339742dd92ecd9377a 100644 (file)
@@ -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;