diff options
author | Ted Trask <ttrask01@yahoo.com> | 2013-02-07 15:29:45 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2013-02-07 15:29:45 +0000 |
commit | 8fb79a92e967f49c1640c5e97ae7b683c81267a2 (patch) | |
tree | b1b5a27cac94f1cb33e271c2c2cc0283f74a5807 | |
parent | 01ad30acf330d433f7f53cb0c13cf5f9eec596a9 (diff) | |
download | acf-kamailio-8fb79a92e967f49c1640c5e97ae7b683c81267a2.tar.bz2 acf-kamailio-8fb79a92e967f49c1640c5e97ae7b683c81267a2.tar.xz |
Use luasql function to escape values, since this takes database settings into account
-rw-r--r-- | kamailio-model.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kamailio-model.lua b/kamailio-model.lua index 944627c..9d8d495 100644 --- a/kamailio-model.lua +++ b/kamailio-model.lua @@ -31,7 +31,7 @@ end -- Escape special characters in sql statements local escape = function(sql) sql = sql or "" - return string.gsub(sql, "'", "''") + return con:escape(sql) end local databaseconnect = function() |