Exit immediately after http redirect

This is needed since we use 401 on logout
pull/6781/head
Aleksander Machniak 5 years ago
parent fdac30e544
commit b39c5aaaec

@ -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;
}
}
}

Loading…
Cancel
Save