public
Fork of wycats/merb-core
Description: Merb Core: All you need. None you don't.
Homepage: http://www.merbivore.com
Clone URL: git://github.com/auser/merb-core.git
Fixes cookie sessions when the session is blanked out.
wycats (author)
Thu Mar 13 16:15:25 -0700 2008
commit  fee90e18ff98e282eb84452216401bbca922f956
tree    897f17f4a3db38934275c6f3b78b6a6474391558
parent  adad648d6c700c7ff450ae7a6f1abf3ca136264a
...
155
156
157
 
158
159
160
...
155
156
157
158
159
160
161
0
@@ -155,6 +155,7 @@ module Merb
0
     def unmarshal(cookie)
0
       if cookie
0
         data, digest = Merb::Request.unescape(cookie).split('--')
0
+ return {} if data.blank?
0
         unless digest == generate_digest(data)
0
           raise TamperedWithCookie, "Maybe the site's session_secret_key has changed?"
0
         end

Comments

    No one has commented yet.