Skip to content

Commit

Permalink
Escape special characters when searching the server list (#7842)
Browse files Browse the repository at this point in the history
Simple fix to stop searching for "[" or other special characters causing a crash.
  • Loading branch information
ChimneySwift authored and SmallJoker committed Nov 10, 2018
1 parent 57a2f3e commit 6c42ebf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions builtin/mainmenu/tab_online.lua
Expand Up @@ -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

Expand Down

0 comments on commit 6c42ebf

Please sign in to comment.