Stefan Bühler
54d7b46774
[lua] protect setup and action metatable
...
Change-Id: I3cba403ad9bdfc3025cdb801d194b12e420ee0c0
2 years ago
Stefan Bühler
3bf903c398
[lua] provide and use li_lua_new_protected_metatable to prevent tampering with metatables
...
Change-Id: Ifda5a1465c8fc291f0f09490a9f6e2c3f6b27504
2 years ago
Stefan Bühler
53337c81d4
[lua] prevent tampering with global "lighty" table
...
Change-Id: If92ea8d7b58868904ab6d1ffaa27534cb09b7d29
2 years ago
Stefan Bühler
5977493f47
[lua] one li_lua_init_*_mt function per "file", add a few missing ones
...
Change-Id: I95661db55debe76c0aca99b2920ce202af7d9967
2 years ago
Stefan Bühler
17a5168793
[core] convert all assert() to LI_FORCE_ASSERT(), and support writing backtraces on fatal errors with libunwind
9 years ago
Stefan Bühler
ad687636e9
[lua] push list values with __index metamethod to lookup string/nil keys in key-value lists
10 years ago
Stefan Bühler
f9d0abac66
[lua] add lighty.error -> lighty.print alias
10 years ago
Stefan Bühler
0d85a068c8
[lua] add per lua_State lock
10 years ago
Stefan Bühler
9cb0790052
[core_lua] Forward worker pointer to log functions in some lua functions
...
This fixes 2 things:
* won't need global server lock for logging in worker context
* order of log entries; worker context log gets committed to
global list in the event loop
10 years ago
Stefan Bühler
77f786ed18
[log] remove different timestamp format handling (one is enough), separate log context (liLogMap) from virtualrequest
11 years ago
Stefan Bühler
b876f8401d
[core]: rework connection/vrequest structs; add liConInfo
13 years ago
Stefan Bühler
5e063e2b04
[core] Enable li_plugins_init_lua again, fixed segfault
13 years ago
Thomas Porzelt
14ed0a508b
[core] Disable call to li_plugins_init_lua() for now, causes segfault due to being called in the wrong place (srv->plugins does not exist yet)
13 years ago
Stefan Bühler
c2271c15c3
Add plugin init-lua hook
13 years ago
Stefan Bühler
f43f70de6e
[lua] export path_simplify
13 years ago
Stefan Bühler
00ef8599cf
Export glib md5/sha1/sha256 hash functions to lua (hex output)
13 years ago
Stefan Bühler
fe7ddede88
Add lua plugins
13 years ago
Stefan Bühler
881669d96a
Add lua filters; fixed some lua-api bugs; enhanced lua chunkqueue api
13 years ago
Stefan Bühler
d9228f3ef0
Add per worker lua_State
14 years ago
Stefan Bühler
a151eeac2f
Prefix li_ cleanup, verified with nm -g --defined-only
14 years ago
Stefan Bühler
476698f118
luaApi: move global method/constants into lighty. namespace, add vr:stat(filename)
14 years ago
Stefan Bühler
ac923e9d0c
Improve lua api
14 years ago
Stefan Bühler
659ebfdd16
Add core lua support to handle requests
14 years ago