mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 14:34:59 +00:00
AK: Append correct number of port characters when serializing a URL
Instead of formatting a port string, it put bytes from stack, using the port number as a length (so for port 8000 it appended 8000 bytes).
This commit is contained in:
parent
c38d3b8520
commit
9e69a89f8e
1 changed files with 1 additions and 1 deletions
|
@ -347,7 +347,7 @@ String URL::serialize_origin() const
|
||||||
builder.append("://"sv);
|
builder.append("://"sv);
|
||||||
builder.append(m_host);
|
builder.append(m_host);
|
||||||
if (m_port.has_value())
|
if (m_port.has_value())
|
||||||
builder.append(":{}", *m_port);
|
builder.appendff(":{}", *m_port);
|
||||||
return builder.build();
|
return builder.build();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue