mirror of
https://github.com/luanti-org/luanti.git
synced 2025-12-17 04:25:26 +01:00
Revert "Fix serverlist not beeing escaped correctly"
This reverts commit 39d03148e5.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user