mirror of https://github.com/kiwix/libkiwix.git
Category name is fully URI-encoded
This commit is contained in:
parent
bad13d76b4
commit
772243e832
|
@ -241,7 +241,7 @@ std::string OPDSDumper::categoriesOPDSFeed() const
|
||||||
const auto now = gen_date_str();
|
const auto now = gen_date_str();
|
||||||
kainjow::mustache::list categoryData;
|
kainjow::mustache::list categoryData;
|
||||||
for ( const auto& category : library->getBooksCategories() ) {
|
for ( const auto& category : library->getBooksCategories() ) {
|
||||||
const auto urlencodedCategoryName = urlEncode(category);
|
const auto urlencodedCategoryName = urlEncode(category, true);
|
||||||
categoryData.push_back(kainjow::mustache::object{
|
categoryData.push_back(kainjow::mustache::object{
|
||||||
{"name", category},
|
{"name", category},
|
||||||
{"urlencoded_name", urlencodedCategoryName},
|
{"urlencoded_name", urlencodedCategoryName},
|
||||||
|
|
Loading…
Reference in New Issue