Skip to content
Browse files

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

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 6c42ebfafa7bc5762fe7ad64b4b9087ba1bc3c38
Showing with 1 addition and 0 deletions.
  1. +1 −0 builtin/mainmenu/tab_online.lua
@@ -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)

0 comments on commit 6c42ebf

Please sign in to comment.
You can’t perform that action at this time.