comphelper/source/misc/lok.cxx | 7 +++++++ 1 file changed, 7 insertions(+)
New commits: commit 348161ac8c7eee7b78cf618f271b9c32b9a7ce65 Author: Andras Timar <[email protected]> AuthorDate: Tue Nov 4 16:02:58 2025 +0100 Commit: Andras Timar <[email protected]> CommitDate: Mon Dec 15 18:14:17 2025 +0100 if LOK_ALLOWLIST_LANGUAGES is not defined, allow all languages Change-Id: I7cab7b87dea84449ceae65896841909362390235 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/193425 Tested-by: Jenkins CollaboraOffice <[email protected]> Reviewed-by: Miklos Vajna <[email protected]> Reviewed-on: https://gerrit.libreoffice.org/c/core/+/195660 Tested-by: Jenkins Reviewed-by: Andras Timar <[email protected]> diff --git a/comphelper/source/misc/lok.cxx b/comphelper/source/misc/lok.cxx index b7365b14418b..bf62b5ae01e1 100644 --- a/comphelper/source/misc/lok.cxx +++ b/comphelper/source/misc/lok.cxx @@ -285,6 +285,10 @@ bool isAllowlistedLanguage(const OUString& lang) } std::cerr << std::endl; } + else + { + aList.emplace_back("*"); // LOK_ALLOWLIST_LANGUAGES not defined, allow all + } if (aList.empty()) std::cerr << "No language allowlisted, turning off the language support." << std::endl; @@ -295,6 +299,9 @@ bool isAllowlistedLanguage(const OUString& lang) if (aAllowlist.empty()) return false; + if (aAllowlist.size() == 1 && aAllowlist[0] == "*") + return true; + for (const auto& entry : aAllowlist) { if (lang.startsWith(entry))
