diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2011-10-31 22:13:38 +0000 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2011-10-31 22:13:38 +0000 |
commit | d64e09aef78d843d347def76a1f1104c0efc1db0 (patch) | |
tree | 3a21bb9bbe7e38908ead2b44a46e2128197812e6 /utils/nsurl.c | |
parent | ea761e16e6f9a4f6095f57ca1aea769e7feb23ac (diff) | |
download | netsurf-d64e09aef78d843d347def76a1f1104c0efc1db0.tar.gz netsurf-d64e09aef78d843d347def76a1f1104c0efc1db0.tar.bz2 |
Make sure port's just 80, before removing in http case.
svn path=/trunk/netsurf/; revision=13106
Diffstat (limited to 'utils/nsurl.c')
-rw-r--r-- | utils/nsurl.c | 2 |
1 files changed, 2 insertions, 0 deletions
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 |