summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZefram <zefram@fysh.org>2014-08-17 14:53:21 +0100
committerZefram <zefram@fysh.org>2014-08-17 14:53:21 +0100
commit2838f0125f8278f72088e683dbfbe3fb43af16de (patch)
tree42f1e7f261db15bc5fce4a9ff33ebdcb5bb7e140
parent17cae3a6508408e913ff05fc44e0e2c3172572b6 (diff)
downloadpipeworks-2838f0125f8278f72088e683dbfbe3fb43af16de.tar
pipeworks-2838f0125f8278f72088e683dbfbe3fb43af16de.tar.gz
pipeworks-2838f0125f8278f72088e683dbfbe3fb43af16de.tar.bz2
pipeworks-2838f0125f8278f72088e683dbfbe3fb43af16de.tar.xz
pipeworks-2838f0125f8278f72088e683dbfbe3fb43af16de.zip
Escape text for cycling form button
-rwxr-xr-xcommon.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/common.lua b/common.lua
index 6a92198..5ccf7d5 100755
--- a/common.lua
+++ b/common.lua
@@ -128,7 +128,7 @@ function fs_helpers.cycling_button(meta, base, meta_name, values)
local new_value = (current_value + 1) % (#values)
local text = values[current_value + 1]
local field = "fs_helpers_cycling:"..new_value..":"..meta_name
- return base..";"..field..";"..text.."]"
+ return base..";"..field..";"..minetest.formspec_escape(text).."]"
end
---------
@@ -141,4 +141,4 @@ function minetest.load_position(pos)
end
local vm = minetest.get_voxel_manip()
vm:read_from_map(pos, pos)
-end \ No newline at end of file
+end