mirror of https://github.com/kiwix/libkiwix.git
* FIXED: Buggy filtering by size in the library
This commit is contained in:
parent
9dc430b07c
commit
5bf6988e24
|
@ -487,7 +487,7 @@ 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))
|
||||
|
|
Loading…
Reference in New Issue