diff options
author | sapier <Sapier at GMX dot net> | 2013-07-08 23:45:14 +0200 |
---|---|---|
committer | kwolekr <kwolekr@minetest.net> | 2013-07-08 19:58:17 -0400 |
commit | 39d03148e5d98ef5f9a31b131a79ff2bbd71a877 (patch) | |
tree | cc91012b059d938707d21b3c934aeab1b5c88073 /src | |
parent | f419f66546b72ed265a5a4dc96569aeee8880d7a (diff) | |
download | minetest-39d03148e5d98ef5f9a31b131a79ff2bbd71a877.tar.gz minetest-39d03148e5d98ef5f9a31b131a79ff2bbd71a877.tar.bz2 minetest-39d03148e5d98ef5f9a31b131a79ff2bbd71a877.zip |
Fix serverlist not beeing escaped correctly
Always use address for server
Fix first (empty) element beeing selected after deleting last world
Diffstat (limited to 'src')
-rw-r--r-- | src/guiFormSpecMenu.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/guiFormSpecMenu.cpp b/src/guiFormSpecMenu.cpp index abe519798..1a99d696b 100644 --- a/src/guiFormSpecMenu.cpp +++ b/src/guiFormSpecMenu.cpp @@ -611,7 +611,7 @@ void GUIFormSpecMenu::parseTextList(parserData* data,std::string element) { std::vector<std::string> v_pos = split(parts[0],','); std::vector<std::string> v_geom = split(parts[1],','); std::string name = parts[2]; - std::vector<std::string> items = split(parts[3],','); + std::vector<std::string> items = split(parts[3],',',true); std::string str_initial_selection = ""; std::string str_transparent = "false"; @@ -1352,6 +1352,7 @@ void GUIFormSpecMenu::parseBox(parserData* data,std::string element) { } void GUIFormSpecMenu::parseElement(parserData* data,std::string element) { + //some prechecks if (element == "") return; |