Escape special characters when searching the server list (#7842)

Simple fix to stop searching for "[" or other special characters causing a crash.
This commit is contained in:
ChimneySwift 2018-11-10 23:46:51 +10:00 committed by Nils Dagsson Moskopp
parent 27a428dc8a
commit 0b17717cdb
Signed by: erle
GPG Key ID: A3BC671C35191080
1 changed files with 1 additions and 0 deletions

View File

@ -256,6 +256,7 @@ local function main_button_handler(tabview, fields, name, tabdata)
-- setup the keyword list
local keywords = {}
for word in input:gmatch("%S+") do
word = word:gsub("(%W)", "%%%1")
table.insert(keywords, word)
end