mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 18:08:12 +00:00
LibWeb+Base: Convert String::format() to String::formatted()
This error page template is slightly hilarious and should probably be replaced with AK::SourceGenerator or some such, but for now let's just get rid of the call to String::format().
This commit is contained in:
parent
e924da6c73
commit
9a8dd38493
2 changed files with 6 additions and 6 deletions
|
@ -227,10 +227,10 @@ void FrameLoader::load_error_page(const URL& failed_url, const String& error)
|
|||
[this, failed_url, error](auto data, auto&, auto) {
|
||||
VERIFY(!data.is_null());
|
||||
#pragma GCC diagnostic ignored "-Wformat-nonliteral"
|
||||
auto html = String::format(
|
||||
String::copy(data).characters(),
|
||||
escape_html_entities(failed_url.to_string()).characters(),
|
||||
escape_html_entities(error).characters());
|
||||
auto html = String::formatted(
|
||||
data,
|
||||
escape_html_entities(failed_url.to_string()),
|
||||
escape_html_entities(error));
|
||||
#pragma GCC diagnostic pop
|
||||
auto document = HTML::parse_html_document(html, failed_url, "utf-8");
|
||||
VERIFY(document);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue