diff options
author | Ted Trask <ttrask01@yahoo.com> | 2009-09-18 16:54:27 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2009-09-18 16:54:27 +0000 |
commit | 2ef31236bfc8897afcdb91859198d745c7eb5a6b (patch) | |
tree | 98aa28b2c9794225d3c7be6d6063849605867358 /weblog-model.lua | |
parent | dc03d52ac55d4894dab1834cb5444e0109276fd2 (diff) | |
download | acf-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.lua | 3 |
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 |