diff options
author | Waqas Hussain <waqas20@gmail.com> | 2009-12-10 02:50:23 +0500 |
---|---|---|
committer | Waqas Hussain <waqas20@gmail.com> | 2009-12-10 02:50:23 +0500 |
commit | d4fe7ffc81ca9144073f573e9288298a9bb568d3 (patch) | |
tree | af8f412fb5c451c3d79a5c0d95b41efe061e9c7c | |
parent | bfd186796265118561ca5b37f4847a77a694c51c (diff) | |
download | prosody-d4fe7ffc81ca9144073f573e9288298a9bb568d3.tar.gz prosody-d4fe7ffc81ca9144073f573e9288298a9bb568d3.zip |
prosody: Call tostring on the key being used for nil global read before concatenating it with a string.
-rwxr-xr-x | prosody | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -296,7 +296,7 @@ end function init_global_protection() -- Catch global accesses local locked_globals_mt = { - __index = function (t, k) log("warn", "%s", debug.traceback("Attempt to read a non-existent global '"..k.."'", 2)); end; + __index = function (t, k) log("warn", "%s", debug.traceback("Attempt to read a non-existent global '"..tostring(k).."'", 2)); end; __newindex = function (t, k, v) error("Attempt to set a global: "..tostring(k).." = "..tostring(v), 2); end; }; |