Преглед на файлове

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).
Karol Kosek преди 3 години
родител
ревизия
9e69a89f8e
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      AK/URL.cpp

+ 1 - 1
AK/URL.cpp

@@ -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();
 }