From b39c5aaaec7231fe490c3e91a12144b2be046017 Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Mon, 27 May 2019 09:33:16 +0200 Subject: [PATCH] Exit immediately after http redirect This is needed since we use 401 on logout --- plugins/http_authentication/http_authentication.php | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/http_authentication/http_authentication.php b/plugins/http_authentication/http_authentication.php index 1ec14edff..4656ad124 100644 --- a/plugins/http_authentication/http_authentication.php +++ b/plugins/http_authentication/http_authentication.php @@ -85,6 +85,7 @@ class http_authentication extends rcube_plugin if (!empty($_SERVER['PHP_AUTH_USER']) && $args['user'] == $_SERVER['PHP_AUTH_USER']) { if ($url = rcmail::get_instance()->config->get('logout_url')) { header("Location: $url", true, 307); + exit; } } }