From fb9b916075465d08648e49b9767e248a2a4bdff7 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jaakko=20Kera=CC=88nen?= jaakko.keranen@iki.fi
Date: Sun, 18 Apr 2021 15:08:17 +0300
Subject: [PATCH 1/1] Dealing with a missing host name
src/gmutil.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/gmutil.c b/src/gmutil.c
index c0eda099..cca930cc 100644
--- a/src/gmutil.c
+++ b/src/gmutil.c
@@ -290,7 +290,8 @@ const iString *absoluteUrl_String(const iString *d, const iString *urlMaybeRelat
appendCStr_String(absolute, "://");
/* Authority. */ {
const iUrl *selHost = isDef_(rel.host) ? &rel : &orig;
const iBool isIPv6 = iStrStrN(selHost->host.start, ":", size_Range(&selHost->host)) != NULL;
const iBool isIPv6 = size_Range(&selHost->host) > 0 &&
iStrStrN(selHost->host.start, ":", size_Range(&selHost->host)) != NULL;
iString *decHost = punyDecodeHost_(selHost->host);
if (isIPv6) {
appendCStr_String(absolute, "[");
--
2.25.1
text/plain
This content has been proxied by September (ba2dc).