encrypted_cookie_store-instructure 1.2.9 → 1.2.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/encrypted_cookie_store-instructure.gemspec +1 -1
- data/lib/encrypted_cookie_store.rb +10 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 44e8e9c22b52c1f858c4ee2e4f534d9dec068fe6898b00559e46a23283d59888
|
4
|
+
data.tar.gz: d4a29f6a3d0cfdc0c65ba956ee15db1b265f60714fb3c92c538bca7acd034632
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 35f3a792a8fc67693a5766de6262872b5c1dae9397e4c6ec2631c07c338615cf4a3334f68f6c837536affbe1f5af84a392d2834aa18befee5b395131b9406a10
|
7
|
+
data.tar.gz: '0841f067b75cfa77bc30ba48ca8c681592099bccf75ff4d3e8894a7d371aa57e4c96f9682b60f4247a337a54c3ddca4fd8473e27d64dfc797e5684fc18e1a05b'
|
@@ -108,8 +108,16 @@ module ActionDispatch
|
|
108
108
|
class_eval <<-RUBY, __FILE__, __LINE__ + 1
|
109
109
|
def #{write_session}(req, sid, session_data, options)
|
110
110
|
session_data = super
|
111
|
-
session_data.
|
112
|
-
|
111
|
+
if session_data.is_a?(::ActionDispatch::Session::CookieStore::SessionId)
|
112
|
+
session_id = session_data
|
113
|
+
session_data = session_data.cookie_value
|
114
|
+
session_data.delete('timestamp')
|
115
|
+
session_id.instance_variable_set(:@cookie_value, marshal(session_data, options)) # swap out the cookie value
|
116
|
+
session_id
|
117
|
+
else
|
118
|
+
session_data.delete('timestamp')
|
119
|
+
marshal(session_data, options)
|
120
|
+
end
|
113
121
|
end
|
114
122
|
RUBY
|
115
123
|
|