]> git.ipfire.org Git - thirdparty/dovecot/core.git/commit
lib-lua: Use rawget to check presence of functions in scripts
authorSiavash Tavakoli <siavash.tavakoli@open-xchange.com>
Tue, 7 Sep 2021 14:03:37 +0000 (15:03 +0100)
committertimo.sirainen <timo.sirainen@open-xchange.com>
Fri, 17 Sep 2021 11:47:15 +0000 (11:47 +0000)
commit460edc6b644bdd1951b789734693da0b9ba93d80
tree6015bc40ac3a3670042b25628cde95c3f454a5bd
parentdc21a1d7e897cf7038861d540b3864745e1860c3
lib-lua: Use rawget to check presence of functions in scripts

With the restricted global variables in next commit, checking for
undeclared functions results in error. Use rawget to avoid metamethods.
src/lib-lua/dlua-script.c