From: Anthony Minessale Date: Fri, 19 Jun 2015 18:22:59 +0000 (-0500) Subject: FS-7689 #resolve X-Git-Tag: v1.4.20~13 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=73f45e375817bf117d73dd073646244a1eb2fc78;p=thirdparty%2Ffreeswitch.git FS-7689 #resolve --- diff --git a/src/mod/languages/mod_lua/mod_lua.cpp b/src/mod/languages/mod_lua/mod_lua.cpp index be68a43eb4..bb835b09e0 100644 --- a/src/mod/languages/mod_lua/mod_lua.cpp +++ b/src/mod/languages/mod_lua/mod_lua.cpp @@ -272,7 +272,7 @@ static switch_xml_t lua_fetch(const char *section, } lua_getglobal(L, "XML_STRING"); - str = lua_tostring(L, 1); + str = lua_tostring(L, -1); if (str) { if (zstr(str)) {