From b494657807e898b81568d4c2956c9eca18a1747f 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: Lucas Gass (cherry picked from commit 7373a1e414ffc74ac17a5c2d4b03b0ee33031cda) --- C4/Auth.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/Auth.pm b/C4/Auth.pm index 2500ce3689..a243f88565 100644 --- a/C4/Auth.pm +++ b/C4/Auth.pm @@ -1279,7 +1279,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.2