Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
PragmaTwice authored Mar 31, 2023
1 parent 385cae8 commit 27c5f6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/storage/scripting.cc
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ void enableGlobalsProtection(lua_State *lua) {
"mt.__newindex = function (t, n, v)\n"
" if dbg.getinfo(2) then\n"
" local w = dbg.getinfo(2, \"S\").what\n"
" if w ~= \"main\" and w ~= \"C\" then\n"
" if w ~= \"user_script\" and w ~= \"C\" then\n"
" error(\"Script attempted to create global variable '\"..tostring(n)..\"'\", 2)\n"
" end\n"
" end\n"
Expand Down

0 comments on commit 27c5f6c

Please sign in to comment.