Mercurial > pub > Impl
diff Lib/IMPL/Web/Handler/SecureCookie.pm @ 340:c090d9102a38
web application security refactoring
author | cin |
---|---|
date | Fri, 21 Jun 2013 02:43:56 +0400 |
parents | 97628101b765 |
children | ec58c47edb52 |
line wrap: on
line diff
--- a/Lib/IMPL/Web/Handler/SecureCookie.pm Wed Jun 19 03:25:44 2013 +0400 +++ b/Lib/IMPL/Web/Handler/SecureCookie.pm Fri Jun 21 02:43:56 2013 +0400 @@ -57,7 +57,7 @@ return unless $nextHandler; my $context; - $this->_manager($action->application->security->new()); + $this->_manager($action->security); my $sid = $action->cookie('sid',qr/(\w+)/); @@ -87,8 +87,6 @@ my $httpResponse = eval { $context->Impersonate($nextHandler,$action); }; my $e = $@; - $this->_manager->Dispose(); - die $e if $e; die OperationException->new("A HttpResponse instance is expected")