Веб-сайт самохостера Lotigara

summaryrefslogtreecommitdiff
path: root/source/core/StarLua.cpp
diff options
context:
space:
mode:
authorKae <80987908+Novaenia@users.noreply.github.com>2025-05-24 04:40:31 +1000
committerGitHub <noreply@github.com>2025-05-24 04:40:31 +1000
commit1eac38c5526f6d4deee811e9995ed5579cdda46c (patch)
treeb8fef39322e342b95a2c654d136a928323913cbd /source/core/StarLua.cpp
parent46737f14ab68bbb0afeb6901cfadbf2475509621 (diff)
parentd4bc678d671b5f1f942855e1e92dc591537d772c (diff)
Merge pull request #246 from KrashV/main
Allow os.date
Diffstat (limited to 'source/core/StarLua.cpp')
-rw-r--r--source/core/StarLua.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/core/StarLua.cpp b/source/core/StarLua.cpp
index 201f238..b70fe59 100644
--- a/source/core/StarLua.cpp
+++ b/source/core/StarLua.cpp
@@ -319,7 +319,7 @@ LuaEnginePtr LuaEngine::create(bool safe) {
luaL_requiref(self->m_state, "os", luaopen_os, true);
if (safe) {
- StringSet osWhitelist = {"clock", "difftime", "time"};
+ StringSet osWhitelist = {"clock", "difftime", "time", "date"};
lua_pushnil(self->m_state);
while (lua_next(self->m_state, -2) != 0) {