diff --git a/Userland/Libraries/LibWeb/OutOfProcessWebView.cpp b/Userland/Libraries/LibWeb/OutOfProcessWebView.cpp index ba4cb6d03b..5fc2dc2d82 100644 --- a/Userland/Libraries/LibWeb/OutOfProcessWebView.cpp +++ b/Userland/Libraries/LibWeb/OutOfProcessWebView.cpp @@ -26,6 +26,8 @@ #include "OutOfProcessWebView.h" #include "WebContentClient.h" +#include +#include #include #include #include @@ -60,14 +62,14 @@ void OutOfProcessWebView::create_client() handle_resize(); StringBuilder builder; builder.append("Crashed: "); - builder.append(m_url.to_string()); + builder.append(escape_html_entities(m_url.to_string())); builder.append(""); builder.append("

Web page crashed"); if (!m_url.host().is_empty()) { - builder.appendff(" on {}", m_url.host()); + builder.appendff(" on {}", escape_html_entities(m_url.host())); } builder.append("

"); - builder.appendff("The web page {} has crashed.

You can reload the page to try again.", m_url, m_url); + builder.appendff("The web page {} has crashed.

You can reload the page to try again.", AK::urlencode(m_url.to_string()), escape_html_entities(m_url.to_string())); builder.append(""); load_html(builder.to_string(), m_url); };