Permalink
Browse files

oops. this should make 1.8.7 happier

  • Loading branch information...
charlie committed Sep 16, 2013
1 parent 8d86f06 commit fd8ef712cffcd59d95a534d507e8b54f3130b142
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/rack/session/cookie.rb
@@ -135,7 +135,8 @@ def unpacked_cookie_data(env)
session_data = request.cookies[@key]
if @secrets.size > 0 && session_data
*tmp, digest = session_data.split("--")
tmp = session_data.split("--")
digest = tmp.pop
session_data = tmp.join("--")
session_data = nil unless digest_match?(session_data, digest)
end

0 comments on commit fd8ef71

Please sign in to comment.