Lines 56-64
use Koha::CookieManager;
Link Here
|
56 |
use vars qw($ldap $cas $caslogout); |
56 |
use vars qw($ldap $cas $caslogout); |
57 |
our (@ISA, @EXPORT_OK); |
57 |
our (@ISA, @EXPORT_OK); |
58 |
|
58 |
|
|
|
59 |
#NOTE: The utility of keeping the safe_exit function is that it can be easily re-defined in unit tests and plugins |
59 |
sub safe_exit { |
60 |
sub safe_exit { |
60 |
if (C4::Context::psgi_env) { die 'psgi:exit' } |
61 |
# It's fine for us to "exit" because CGI::Compile (used in Plack::App::WrapCGI) redefines "exit" for us automatically. |
61 |
else { exit } |
62 |
# Since we only seem to use C4::Auth::safe_exit in a CGI context, we don't actually need PSGI detection at all here. |
|
|
63 |
exit; |
62 |
} |
64 |
} |
63 |
|
65 |
|
64 |
|
66 |
|
65 |
- |
|
|