mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-22 23:27:30 +09:00
Check port safety for AltSvc
This commit is contained in:
parent
537197dfdc
commit
4e15e1fec0
1 changed files with 5 additions and 0 deletions
|
|
@ -121,6 +121,11 @@ AltSvcMapping::ProcessHeader(const nsCString &buf, const nsCString &originScheme
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (NS_FAILED(NS_CheckPortSafety(portno, originScheme.get()))) {
|
||||||
|
LOG(("Alt Svc does not allow port %d, ignoring request", portno));
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
// unescape modifies a c string in place, so afterwards
|
// unescape modifies a c string in place, so afterwards
|
||||||
// update nsCString length
|
// update nsCString length
|
||||||
nsUnescape(npnToken.BeginWriting());
|
nsUnescape(npnToken.BeginWriting());
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue