Merge pull request #187 from swiftugandan/kiwix_serve-fix-global_page_static_resources-1

fix static resources on home page when using --nosearchbar
This commit is contained in:
Matthieu Gautier 2018-04-24 14:16:12 +02:00 committed by GitHub
commit 26da54f9c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -161,9 +161,9 @@ void introduceTaskbar(string& content, const string& humanReadableBookId)
humanReadableBookId,
"__CONTENT__"));
}
content = replaceRegex(content, rootLocation, "__ROOT_LOCATION__");
content = replaceRegex(content, replaceRegex(humanReadableBookId, "%26", "&"), "__CONTENT_ESCAPED__");
}
content = replaceRegex(content, rootLocation, "__ROOT_LOCATION__");
content = replaceRegex(content, replaceRegex(humanReadableBookId, "%26", "&"), "__CONTENT_ESCAPED__");
pthread_mutex_unlock(&regexLock);
}