summaryrefslogtreecommitdiff
path: root/src/gmutil.c
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2020-08-08 22:36:49 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2020-08-08 22:36:49 +0300
commitec4a55a53c2ee358e0b6f6220a7fad6c83cb4101 (patch)
tree9288897c0666d4f84c3e1c90b6e01780861adc52 /src/gmutil.c
parentbedc9dececd2f98866a85bc4a2bebe46bff7c57b (diff)
Don't try to make "about:" URLs absolute
Diffstat (limited to 'src/gmutil.c')
-rw-r--r--src/gmutil.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gmutil.c b/src/gmutil.c
index 4b49e1d0..a919d621 100644
--- a/src/gmutil.c
+++ b/src/gmutil.c
@@ -99,7 +99,7 @@ const iString *absoluteUrl_String(const iString *d, const iString *urlMaybeRelat
99 iUrl rel; 99 iUrl rel;
100 init_Url(&orig, d); 100 init_Url(&orig, d);
101 init_Url(&rel, urlMaybeRelative); 101 init_Url(&rel, urlMaybeRelative);
102 if (equalCase_Rangecc(&rel.protocol, "data")) { 102 if (equalCase_Rangecc(&rel.protocol, "data") || equalCase_Rangecc(&rel.protocol, "about")) {
103 /* Special case, the contents should be left unparsed. */ 103 /* Special case, the contents should be left unparsed. */
104 return urlMaybeRelative; 104 return urlMaybeRelative;
105 } 105 }