Skip to content

Commit

Permalink
Merge pull request #440 from kiwix/better-taskbar-introduction
Browse files Browse the repository at this point in the history
Fix taskbar insertion in case of '<head>' attributes
  • Loading branch information
kelson42 authored Jan 12, 2021
2 parents 9e032b6 + 8c43fd8 commit 321d08e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/response.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 321d08e

Please sign in to comment.