mirror of
https://github.com/kiwix/libkiwix.git
synced 2025-09-10 07:36:20 -04:00
Merge pull request #476 from MananJethwani/correcting#474
changed method of injecting root link
This commit is contained in:
commit
803cb1c2c5
@ -230,7 +230,7 @@ void ContentResponse::inject_externallinks_blocker()
|
|||||||
void ContentResponse::inject_root_link(){
|
void ContentResponse::inject_root_link(){
|
||||||
m_content = prependToFirstOccurence(
|
m_content = prependToFirstOccurence(
|
||||||
m_content,
|
m_content,
|
||||||
"<head[ \\t]*>",
|
"</head[ \\t]*>",
|
||||||
"<link type=\"root\" href=\"" + m_root + "\">");
|
"<link type=\"root\" href=\"" + m_root + "\">");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user