mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-24 19:21:52 +00:00
LibWebView: Escape HTML entities in the Task Manager process titles
This commit is contained in:
parent
0bd5e94958
commit
95c6fdf401
Notes:
sideshowbarker
2024-07-17 18:38:54 +09:00
Author: https://github.com/trflynn89
Commit: 95c6fdf401
Pull-request: https://github.com/SerenityOS/serenity/pull/24298
Issue: https://github.com/SerenityOS/serenity/issues/24293
Reviewed-by: https://github.com/ADKaster ✅
1 changed files with 1 additions and 1 deletions
|
@ -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)));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue