From e8bef7f4cac316e48561ca396cded409b09767a8 Mon Sep 17 00:00:00 2001 From: kink Date: Tue, 17 Dec 2002 11:25:57 +0000 Subject: [PATCH] Unreverse the order of do_hook and sqsession_destroy, tip from Alexandros Vellis git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@4275 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- src/signout.php | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/signout.php b/src/signout.php index 10905310..11da8f22 100644 --- a/src/signout.php +++ b/src/signout.php @@ -47,25 +47,28 @@ if (!isset($_SESSION['base_uri'])) { } else { $base_uri = $_SESSION['base_uri']; } -sqsession_destroy(); + do_hook('logout'); +sqsession_destroy(); + if ($signout_page) { header('Status: 303 See Other'); header("Location: $signout_page"); exit; /* we send no content if we're redirecting. */ } ?> + - + - + -<?php echo $org_title ?> - Signout + <?php echo $org_title ?> - Signout