diff options
author | Ted Trask <ttrask01@yahoo.com> | 2012-01-03 16:14:33 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2012-01-03 16:14:33 +0000 |
commit | fe5c65f65a356a31f3f196845eec20df3eca976b (patch) | |
tree | 7dd8338ec37e8dc26ee9c5e8ac9f8bf1a8929b46 | |
parent | 729b143227d16ab58b4f69b06dec5f98c52df0d4 (diff) | |
download | acf-kamailio-fe5c65f65a356a31f3f196845eec20df3eca976b.tar.bz2 acf-kamailio-fe5c65f65a356a31f3f196845eec20df3eca976b.tar.xz |
Fixed escape function to not escape \
-rw-r--r-- | kamailio-model.lua | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/kamailio-model.lua b/kamailio-model.lua index 311fa7c..c121dd1 100644 --- a/kamailio-model.lua +++ b/kamailio-model.lua @@ -32,8 +32,7 @@ end -- Escape special characters in sql statements local escape = function(sql) sql = sql or "" - sql = string.gsub(sql, "'", "''") - return string.gsub(sql, "\\", "\\\\") + return string.gsub(sql, "'", "''") end local databaseconnect = function() |