summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@wolfbeast.com>2019-07-20 17:36:06 +0200
committerwolfbeast <mcwerewolf@wolfbeast.com>2019-07-20 17:36:06 +0200
commitf046b91738bb5518d195dbce5aa0df55ff997c3a (patch)
treeda95e92f8c2d72fac99dced0f9505554ad074fb9
parent7e6342a01158d689cb8cbfcb7ffb34f4aa2817c9 (diff)
downloadUXP-f046b91738bb5518d195dbce5aa0df55ff997c3a.tar
UXP-f046b91738bb5518d195dbce5aa0df55ff997c3a.tar.gz
UXP-f046b91738bb5518d195dbce5aa0df55ff997c3a.tar.lz
UXP-f046b91738bb5518d195dbce5aa0df55ff997c3a.tar.xz
UXP-f046b91738bb5518d195dbce5aa0df55ff997c3a.zip
Do not allow the ^ character to appear in the hostname.
-rw-r--r--netwerk/base/nsStandardURL.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/netwerk/base/nsStandardURL.cpp b/netwerk/base/nsStandardURL.cpp
index dff4ecbc0..7317240c2 100644
--- a/netwerk/base/nsStandardURL.cpp
+++ b/netwerk/base/nsStandardURL.cpp
@@ -575,7 +575,7 @@ nsStandardURL::ValidIPv6orHostname(const char *host, uint32_t length)
}
const char *end = host + length;
- if (end != net_FindCharInSet(host, end, CONTROL_CHARACTERS " #/:?@[\\]*<>|\"")) {
+ if (end != net_FindCharInSet(host, end, CONTROL_CHARACTERS " #/:?@[\\]*<>|\"^")) {
// We still allow % because it is in the ID of addons.
// Any percent encoded ASCII characters that are not allowed in the
// hostname are not percent decoded, and will be parsed just fine.