comphelper/source/misc/lok.cxx | 7 +++++++ 1 file changed, 7 insertions(+)
New commits: commit f845435a8a1fef2daa24abd87e5cfdea1fa9a7dc Author: Andras Timar <[email protected]> AuthorDate: Tue Nov 4 16:02:58 2025 +0100 Commit: Miklos Vajna <[email protected]> CommitDate: Wed Nov 5 08:35:31 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]> diff --git a/comphelper/source/misc/lok.cxx b/comphelper/source/misc/lok.cxx index 4e06e0cfb2cd..4dc3afaf01d5 100644 --- a/comphelper/source/misc/lok.cxx +++ b/comphelper/source/misc/lok.cxx @@ -275,6 +275,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; @@ -285,6 +289,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))
