mod_magnet: fix pairs() for normal tables and strings (fixes #1307)

git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2680 152afb58-edef-0310-8abb-c4023f1b3aa9
svn/tags/lighttpd-1.4.25
Stefan Bühler 14 years ago
parent 66805d03a6
commit 07ae3fb815

@ -4,7 +4,7 @@ NEWS
====
- 1.4.25 -
*
* mod_magnet: fix pairs() for normal tables and strings (fixes #1307)
- 1.4.24 - 2009-10-25
* Add T_CONFIG_INT for bigger integers from the config (needed for #1966)

@ -170,6 +170,7 @@ static int magnet_pairs(lua_State *L) {
return lua_gettop(L);
} else {
lua_pushvalue(L, lua_upvalueindex(1));
lua_insert(L, 1);
lua_call(L, lua_gettop(L) - 1, LUA_MULTRET);
return lua_gettop(L);
}

Loading…
Cancel
Save