projects
/
oweals
/
minetest.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
142e2d3
)
Minor fixes for file/modlist download in mainmenu
1208/head
author
sapier
<Sapier at GMX dot net>
Sun, 6 Apr 2014 13:20:45 +0000
(15:20 +0200)
committer
sapier
<Sapier at GMX dot net>
Wed, 9 Apr 2014 18:22:21 +0000
(20:22 +0200)
src/script/lua_api/l_mainmenu.cpp
patch
|
blob
|
history
diff --git
a/src/script/lua_api/l_mainmenu.cpp
b/src/script/lua_api/l_mainmenu.cpp
index 1a28c9ba098a8381d7a104c1ebf709029fe6b2e7..fbb70c38953ba817dd1caf8390325dd0fecbd347 100644
(file)
--- a/
src/script/lua_api/l_mainmenu.cpp
+++ b/
src/script/lua_api/l_mainmenu.cpp
@@
-387,11
+387,6
@@
int ModApiMainMenu::l_get_modstore_details(lua_State *L)
/******************************************************************************/
int ModApiMainMenu::l_get_modstore_list(lua_State *L)
{
/******************************************************************************/
int ModApiMainMenu::l_get_modstore_list(lua_State *L)
{
- std::string listtype = "local";
-
- if (!lua_isnone(L,1)) {
- listtype = luaL_checkstring(L,1);
- }
Json::Value mods;
std::string url = "";
try{
Json::Value mods;
std::string url = "";
try{
@@
-990,6
+985,9
@@
int ModApiMainMenu::l_download_file(lua_State *L)
lua_pushboolean(L,true);
return 1;
}
lua_pushboolean(L,true);
return 1;
}
+ } else {
+ errorstream << "DOWNLOAD denied: " << absolute_destination
+ << " isn't a allowed path" << std::endl;
}
lua_pushboolean(L,false);
return 1;
}
lua_pushboolean(L,false);
return 1;