From b1aeec7358713767738c64b3699cfb091b19c785 Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Wed, 24 Apr 2013 20:32:18 +0000 Subject: Fixed bug where user words not properly escaped --- weblog-model.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'weblog-model.lua') diff --git a/weblog-model.lua b/weblog-model.lua index faac6a7..e571402 100644 --- a/weblog-model.lua +++ b/weblog-model.lua @@ -466,7 +466,7 @@ local function checkwords(logentry) if not thisline then break end - _,instcnt = string.lower(logentry.URL):gsub(thisline, " ") + _,instcnt = string.lower(logentry.URL):gsub(format.escapemagiccharacters(thisline), " ") if instcnt ~= 0 then logentry.ignoreme = true --logme("ignoring...") @@ -481,7 +481,7 @@ local function checkwords(logentry) break end - _,instcnt = string.lower(logentry.URL):gsub(thisline, " ") + _,instcnt = string.lower(logentry.URL):gsub(format.escapemagiccharacters(thisline), " ") if instcnt ~= 0 then -- logme("instcnt = "..instcnt) isbad=1 @@ -524,7 +524,7 @@ local function checkwords(logentry) if not goodline then break end - _,instcnt = string.lower(logentry.URL):gsub(goodline, " ") + _,instcnt = string.lower(logentry.URL):gsub(format.escapemagiccharacters(goodline), " ") --if string.find(logentry.URL,goodline) then if instcnt ~= 0 then if wrdcnt >= instcnt then -- cgit v1.2.3