From c70977f5fe2b721ed0b00cd7c48ad9c4232273d8 Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Mon, 14 Nov 2022 11:09:43 +0000 Subject: [PATCH] Bug 31908: Replace an exit by a safe_exit in Auth.pm L1314 No change in user experience. But since we can mock safe_exit, we can enhance test results. Signed-off-by: Marcel de Rooy Signed-off-by: David Cook Signed-off-by: Tomas Cohen Arazi --- C4/Auth.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/Auth.pm b/C4/Auth.pm index d8ddb17098..64aa95556a 100644 --- a/C4/Auth.pm +++ b/C4/Auth.pm @@ -1311,7 +1311,7 @@ sub checkauth { $uri->query_param_delete('password'); $uri->query_param_delete('koha_login_context'); print $query->redirect(-uri => $uri->as_string, -cookie => $cookie, -status=>'303 See other'); - exit; + safe_exit; } return ( $userid, $cookie, $sessionID, $flags ); -- 2.20.1