From b160979234babc22bf6670149a09a10015a2419e 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: Martin Renvoize Signed-off-by: Wainui Witika-Park --- C4/Auth.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/Auth.pm b/C4/Auth.pm index 3648507807..a8ed6a7569 100644 --- a/C4/Auth.pm +++ b/C4/Auth.pm @@ -1320,7 +1320,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.39.5