From d64e09aef78d843d347def76a1f1104c0efc1db0 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Mon, 31 Oct 2011 22:13:38 +0000 Subject: Make sure port's just 80, before removing in http case. svn path=/trunk/netsurf/; revision=13106 --- utils/nsurl.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'utils') diff --git a/utils/nsurl.c b/utils/nsurl.c index b08335970..61799e64c 100644 --- a/utils/nsurl.c +++ b/utils/nsurl.c @@ -857,6 +857,8 @@ static nserror nsurl__create_from_section(const char const *url_s, strncmp(lwc_string_data( url->scheme), "http", SLEN("http")) == 0 && + length - + (colon - pegs->at + 1) == 2 && *sec_start == '8' && *(sec_start + 1) == '0') { /* Scheme is http, and port is default -- cgit v1.2.3