mirror of
https://github.com/kiwix/libkiwix.git
synced 2025-06-28 05:49:35 +00:00
* FIXED: Buggy filtering by size in the library
This commit is contained in:
@ -486,10 +486,10 @@ namespace kiwix {
|
||||
|
||||
if (ok == true && mode == REMOTE && (!itr->path.empty() || itr->url.empty()))
|
||||
ok = false;
|
||||
|
||||
if (ok == true && (unsigned int)atoi(itr->size.c_str()) > maxSize * 1024 * 1024)
|
||||
|
||||
if (ok == true && maxSize != 0 && (unsigned int)atoi(itr->size.c_str()) > maxSize * 1024 * 1024)
|
||||
ok = false;
|
||||
|
||||
|
||||
if (ok == true && !language.empty() && !matchRegex(itr->language, language))
|
||||
ok = false;
|
||||
|
||||
|
Reference in New Issue
Block a user