diff options
author | wolfbeast <mcwerewolf@wolfbeast.com> | 2019-07-20 17:36:06 +0200 |
---|---|---|
committer | wolfbeast <mcwerewolf@wolfbeast.com> | 2019-07-22 12:21:37 +0200 |
commit | 0cd2ef552db767ada217c3f61fde65dc5cecc1ef (patch) | |
tree | 76800780e330633546ad61ad3b99ff47a59f20e8 | |
parent | e04b23d671e4de16532aea7805893d8ccfed946b (diff) | |
download | UXP-0cd2ef552db767ada217c3f61fde65dc5cecc1ef.tar UXP-0cd2ef552db767ada217c3f61fde65dc5cecc1ef.tar.gz UXP-0cd2ef552db767ada217c3f61fde65dc5cecc1ef.tar.lz UXP-0cd2ef552db767ada217c3f61fde65dc5cecc1ef.tar.xz UXP-0cd2ef552db767ada217c3f61fde65dc5cecc1ef.zip |
Do not allow the ^ character to appear in the hostname.
-rw-r--r-- | netwerk/base/nsStandardURL.cpp | 2 |
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. |