Merge pull request #440 from kiwix/better-taskbar-introduction

Fix taskbar insertion in case of '<head>' attributes
This commit is contained in:
Kelson 2021-01-12 11:48:57 +01:00 committed by GitHub
commit 321d08e3d5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

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