From a595d7c4bbe44f7de6c565a4fbbdcff735f0ce99 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Mon, 3 Oct 2011 11:36:26 +0000 Subject: Fix parse of url with host name only. svn path=/trunk/netsurf/; revision=12925 --- utils/nsurl.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/utils/nsurl.c b/utils/nsurl.c index b1c4846ac..acb269aea 100644 --- a/utils/nsurl.c +++ b/utils/nsurl.c @@ -236,6 +236,8 @@ static void nsurl__get_string_markers(const char const *url_s, marker.path = pos - url_s; + } else if (*pos == '\0' && joining == false && is_http == true) { + marker.path = pos - url_s; } /* Get path -- cgit v1.2.3