summaryrefslogtreecommitdiffstats
path: root/weblog-model.lua
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2009-09-18 16:54:27 +0000
committerTed Trask <ttrask01@yahoo.com>2009-09-18 16:54:27 +0000
commit2ef31236bfc8897afcdb91859198d745c7eb5a6b (patch)
tree98aa28b2c9794225d3c7be6d6063849605867358 /weblog-model.lua
parentdc03d52ac55d4894dab1834cb5444e0109276fd2 (diff)
downloadacf-weblog-2ef31236bfc8897afcdb91859198d745c7eb5a6b.tar.bz2
acf-weblog-2ef31236bfc8897afcdb91859198d745c7eb5a6b.tar.xz
Fixed bug in importing logs with \ characters
Diffstat (limited to 'weblog-model.lua')
-rw-r--r--weblog-model.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/weblog-model.lua b/weblog-model.lua
index 70aff4e..867e677 100644
--- a/weblog-model.lua
+++ b/weblog-model.lua
@@ -63,7 +63,8 @@ end
-- Escape special characters in sql statements
local escape = function(sql)
sql = sql or ""
- return string.gsub(sql, "'", "''")
+ sql = string.gsub(sql, "'", "''")
+ return string.gsub(sql, "\\", "\\\\")
end
-- List the postgres databases on this system