diff options
author | Ted Trask <ttrask01@yahoo.com> | 2013-04-24 20:32:18 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2013-04-24 20:32:18 +0000 |
commit | b1aeec7358713767738c64b3699cfb091b19c785 (patch) | |
tree | 400c146cd0d452e2350b7b47a1fc59f3f5d98371 | |
parent | 3130360d4f3dbfac7186610abca3c9cfbbdf882d (diff) | |
download | acf-weblog-b1aeec7358713767738c64b3699cfb091b19c785.tar.bz2 acf-weblog-b1aeec7358713767738c64b3699cfb091b19c785.tar.xz |
Fixed bug where user words not properly escaped
-rw-r--r-- | weblog-model.lua | 6 |
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 |