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:
parent
eedb29346e
commit
e1a13608d8
3 changed files with 19 additions and 16 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue