summaryrefslogtreecommitdiff
path: root/utils/nsurl.c
diff options
context:
space:
mode:
Diffstat (limited to 'utils/nsurl.c')
-rw-r--r--utils/nsurl.c2
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