aboutsummaryrefslogtreecommitdiff
path: root/builtin/gamemgr.lua
diff options
context:
space:
mode:
Diffstat (limited to 'builtin/gamemgr.lua')
-rw-r--r--builtin/gamemgr.lua6
1 files changed, 4 insertions, 2 deletions
diff --git a/builtin/gamemgr.lua b/builtin/gamemgr.lua
index 8409bff03..7a5e9790f 100644
--- a/builtin/gamemgr.lua
+++ b/builtin/gamemgr.lua
@@ -225,7 +225,8 @@ function gamemgr.tab()
if current_game.menuicon_path ~= nil and
current_game.menuicon_path ~= "" then
retval = retval ..
- "image[5.8,-0.25;2,2;" .. current_game.menuicon_path .. "]"
+ "image[5.8,-0.25;2,2;" ..
+ engine.formspec_escape(current_game.menuicon_path) .. "]"
end
retval = retval ..
@@ -251,7 +252,8 @@ function gamemgr.dialog_edit_game()
if current_game.menuicon_path ~= nil and
current_game.menuicon_path ~= "" then
retval = retval ..
- "image[5.25,0;2,2;" .. current_game.menuicon_path .. "]"
+ "image[5.25,0;2,2;" ..
+ engine.formspec_escape(current_game.menuicon_path) .. "]"
end
retval = retval ..