mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-04 05:20:30 +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
Notes:
sideshowbarker
2024-07-17 10:20:05 +09:00
Author: https://github.com/krkk Commit: https://github.com/SerenityOS/serenity/commit/9e69a89f8e Pull-request: https://github.com/SerenityOS/serenity/pull/14252 Reviewed-by: https://github.com/linusg
1 changed files with 1 additions and 1 deletions
|
@ -347,7 +347,7 @@ String URL::serialize_origin() const
|
|||
builder.append("://"sv);
|
||||
builder.append(m_host);
|
||||
if (m_port.has_value())
|
||||
builder.append(":{}", *m_port);
|
||||
builder.appendff(":{}", *m_port);
|
||||
return builder.build();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue