From e1a13608d85818cae8543e72f78659dcdfa99fc1 Mon Sep 17 00:00:00 2001 From: kwolekr Date: Mon, 8 Jul 2013 20:21:09 -0400 Subject: Revert "Fix serverlist not beeing escaped correctly" This reverts commit 39d03148e5d98ef5f9a31b131a79ff2bbd71a877. --- builtin/mainmenu_helper.lua | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'builtin/mainmenu_helper.lua') diff --git a/builtin/mainmenu_helper.lua b/builtin/mainmenu_helper.lua index 25ad072fd..a204b4a37 100644 --- a/builtin/mainmenu_helper.lua +++ b/builtin/mainmenu_helper.lua @@ -77,11 +77,9 @@ function fs_escape_string(text) text = newtext end - text = string.gsub(text,"\\","\\\\") - text = string.gsub(text,"%]","\\]") - text = string.gsub(text,"%[","\\[") - text = string.gsub(text,";","\\;") - text = string.gsub(text,",","\\,") + text = text:gsub("%[","\\%[") + text = text:gsub("]","\\]") + text = text:gsub(";","\\;") end return text end -- cgit v1.2.3