summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--weblog-model.lua6
1 files changed, 3 insertions, 3 deletions
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