From fb6130a4605a5ddec5959c7650bdce9b81304b50 Mon Sep 17 00:00:00 2001 From: shagu Date: Sun, 31 May 2020 15:40:01 +0200 Subject: [PATCH] bags: sanitize search texst box patterns --- modules/bags.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/bags.lua b/modules/bags.lua index e7594100..554c7207 100644 --- a/modules/bags.lua +++ b/modules/bags.lua @@ -893,7 +893,7 @@ pfUI:RegisterModule("bags", "vanilla:tbc", function () if itemCount then local itemLink = GetContainerItemLink(bag, slot) local itemstring = string.sub(itemLink, string.find(itemLink, "%[")+1, string.find(itemLink, "%]")-1) - if strfind(strlower(itemstring), strlower(this:GetText())) then + if strfind(strlower(itemstring), strlower(string.gsub(this:GetText(), "([^%w])", "%%%1"))) then pfUI.bags[bag].slots[slot].frame:SetAlpha(1) else pfUI.bags[bag].slots[slot].frame:SetAlpha(.25)