Skip to content

Commit e13413b

Browse files
committed
Release 2.19.
1 parent dbad0d1 commit e13413b

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

Changes.md

+7
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22

33
All notable changes to `lua-resty-session` will be documented in this file.
44

5+
## [2.19] - 2017-09-19
6+
### Fixed
7+
- Fixes small bug where aes could generate invalid salt on invalid input
8+
that further crashes Lua with error: bad argument #2 to 'salt' (number
9+
expected, got no value)
10+
11+
512
## [2.18] - 2017-07-10
613
### Fixed
714
- Automatically creates exactly 64 bits salt as required by the latest

lib/resty/session.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ local function init()
203203
end
204204

205205
local session = {
206-
_VERSION = "2.18"
206+
_VERSION = "2.19"
207207
}
208208

209209
session.__index = session

lib/resty/session/ciphers/aes.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ local function salt(s)
3636
if s then
3737
local z = #s
3838
if z < 8 then
39-
return sub(rep(s, ceil(8 / z), 1, 8))
39+
return sub(rep(s, ceil(8 / z)), 1, 8)
4040
end
4141
if z > 8 then
4242
return sub(s, 1, 8)

0 commit comments

Comments
 (0)