Play it a little safer when reassigning login uri
authorpdontthink <pdontthink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Sat, 4 Nov 2006 04:11:42 +0000 (04:11 +0000)
committerpdontthink <pdontthink@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Sat, 4 Nov 2006 04:11:42 +0000 (04:11 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@11947 7612ce4b-ef26-0410-bec9-ea0150e637f0

src/signout.php

index 538046e..16841d6 100644 (file)
@@ -38,7 +38,7 @@ if (! sqgetGlobalVar('base_uri', $base_uri, SQ_SESSION) ) {
 $login_uri = 'login.php';
 
 $hook_results = do_hook('logout', $login_uri);
-$login_uri = $hook_results[1];
+if (!empty($hook_results[1])) $login_uri = $hook_results[1];
 
 sqsession_destroy();