LibWebView: Escape HTML entities in the Task Manager process titles

This commit is contained in:
Timothy Flynn 2024-05-12 14:44:22 -04:00 committed by Andrew Kaster
parent 0bd5e94958
commit 95c6fdf401
Notes: sideshowbarker 2024-07-17 18:38:54 +09:00

View file

@ -211,7 +211,7 @@ String ProcessManager::generate_html()
builder.append("<td>"sv);
builder.append(WebView::process_name_from_type(process.type));
if (process.title.has_value())
builder.appendff(" - {}", *process.title);
builder.appendff(" - {}", escape_html_entities(*process.title));
builder.append("</td>"sv);
builder.append("<td>"sv);
builder.append(MUST(String::number(process.pid)));