mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-05 07:18:39 +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;
|
||||
}
|
||||
|
||||
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
|
||||
// update nsCString length
|
||||
nsUnescape(npnToken.BeginWriting());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue