mirror of https://github.com/kiwix/libkiwix.git
changed method of injecting root link
This commit is contained in:
parent
d061697de7
commit
7872734f44
|
@ -230,7 +230,7 @@ void ContentResponse::inject_externallinks_blocker()
|
|||
void ContentResponse::inject_root_link(){
|
||||
m_content = prependToFirstOccurence(
|
||||
m_content,
|
||||
"<head[ \\t]*>",
|
||||
"</head[ \\t]*>",
|
||||
"<link type=\"root\" href=\"" + m_root + "\">");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue