mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Fix serverlist
This commit is contained in:
parent
e3b7c8e0cc
commit
1c7c5d571d
4 changed files with 54 additions and 29 deletions
|
@ -77,9 +77,11 @@ function fs_escape_string(text)
|
|||
text = newtext
|
||||
end
|
||||
|
||||
text = text:gsub("%[","\\%[")
|
||||
text = text:gsub("]","\\]")
|
||||
text = text:gsub(";","\\;")
|
||||
text = string.gsub(text,"\\","\\\\")
|
||||
text = string.gsub(text,"%]","\\]")
|
||||
text = string.gsub(text,"%[","\\[")
|
||||
text = string.gsub(text,";","\\;")
|
||||
text = string.gsub(text,",","\\,")
|
||||
end
|
||||
return text
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue