aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--util/paseto.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/util/paseto.lua b/util/paseto.lua
index a39f9667..8b564c96 100644
--- a/util/paseto.lua
+++ b/util/paseto.lua
@@ -23,6 +23,9 @@ local function le64(n)
end
local function pae(parts)
+ if type(parts) ~= "table" then
+ error("bad argument #1 to 'pae' (table expected, got "..type(parts)..")");
+ end
local o = { le64(#parts) };
for _, part in ipairs(parts) do
table.insert(o, le64(#part)..part);