1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-07-22 17:18:39 +00:00

Revert "Fix serverlist not beeing escaped correctly"

This reverts commit 39d03148e5.
This commit is contained in:
kwolekr 2013-07-08 20:21:09 -04:00
parent eedb29346e
commit e1a13608d8
3 changed files with 19 additions and 16 deletions

View file

@ -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