Better </head> detection regex

This commit is contained in:
Emmanuel Engelhart 2021-01-18 13:16:56 +01:00
parent a8bf9dd5b4
commit 84895c4036
1 changed files with 1 additions and 1 deletions

View File

@ -205,7 +205,7 @@ void ContentResponse::introduce_taskbar()
auto head_content = render_template(RESOURCE::templates::head_part_html, data);
m_content = prependToFirstOccurence(
m_content,
"</head[^>]*>",
"</head[ \\t]*>",
head_content);
auto taskbar_part = render_template(RESOURCE::templates::taskbar_part_html, data);