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 538046e6c5733ae42eeeefb2c3768f53f79f9e2c..16841d63cfcfcea795b6e9ed0b7a611327465f09 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();