diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/dblib.lua | 2 | ||||
-rw-r--r-- | lib/httplib.lua | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/dblib.lua b/lib/dblib.lua index 3840657..a48f065 100644 --- a/lib/dblib.lua +++ b/lib/dblib.lua @@ -623,7 +623,7 @@ END; end end if not bypass and not is_foreign and not t._.ddl[v] then - error("Trying to select a field which doesn't exist: " .. k .. " - inside of table " .. t._.tablename) + error("Trying to select a field which doesn't exist: " .. v .. " - inside of table " .. t._.tablename) end if not first then stmt = stmt .. ", " diff --git a/lib/httplib.lua b/lib/httplib.lua index 26d66bd..9642e11 100644 --- a/lib/httplib.lua +++ b/lib/httplib.lua @@ -59,7 +59,7 @@ function get_cookies(req) local k, v for k, v in pairs(cookie_strings) do - local cname, cvalue = string.match(v, "(%[^=]+)=(.+)") + local cname, cvalue = string.match(v, "([^=]+)=(.+)") if cname then cookies[trim(cname)] = trim(cvalue) end end end |