@@ -, +, @@ C4::Auth::safe_exit --- C4/Auth.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/C4/Auth.pm +++ a/C4/Auth.pm @@ -55,9 +55,9 @@ use Koha::CookieManager; use vars qw($ldap $cas $caslogout); our (@ISA, @EXPORT_OK); +#NOTE: The utility of keeping the safe_exit function is that it can be easily re-defined in unit tests and plugins sub safe_exit { - if (C4::Context::psgi_env) { die 'psgi:exit' } - else { exit } + exit; } --