diff options
-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 |