mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-26 17:17:31 +09:00
Do not allow the ^ character to appear in the hostname.
This commit is contained in:
parent
b97da34a21
commit
a10e2214ee
1 changed files with 1 additions and 1 deletions
|
|
@ -575,7 +575,7 @@ nsStandardURL::ValidIPv6orHostname(const char *host, uint32_t length)
|
||||||
}
|
}
|
||||||
|
|
||||||
const char *end = host + 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.
|
// We still allow % because it is in the ID of addons.
|
||||||
// Any percent encoded ASCII characters that are not allowed in the
|
// Any percent encoded ASCII characters that are not allowed in the
|
||||||
// hostname are not percent decoded, and will be parsed just fine.
|
// hostname are not percent decoded, and will be parsed just fine.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue