mirror of https://github.com/kiwix/libkiwix.git
Better </head> detection regex
This commit is contained in:
parent
a8bf9dd5b4
commit
84895c4036
|
@ -205,7 +205,7 @@ void ContentResponse::introduce_taskbar()
|
||||||
auto head_content = render_template(RESOURCE::templates::head_part_html, data);
|
auto head_content = render_template(RESOURCE::templates::head_part_html, data);
|
||||||
m_content = prependToFirstOccurence(
|
m_content = prependToFirstOccurence(
|
||||||
m_content,
|
m_content,
|
||||||
"</head[^>]*>",
|
"</head[ \\t]*>",
|
||||||
head_content);
|
head_content);
|
||||||
|
|
||||||
auto taskbar_part = render_template(RESOURCE::templates::taskbar_part_html, data);
|
auto taskbar_part = render_template(RESOURCE::templates::taskbar_part_html, data);
|
||||||
|
|
Loading…
Reference in New Issue