diff options
| -rw-r--r-- | comphelper/source/misc/lok.cxx | 7 |
1 files changed, 7 insertions, 0 deletions
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)) |
