Fix portal access
authorMichael M Slusarz <slusarz@curecanti.org>
Tue, 27 Jul 2010 08:17:38 +0000 (02:17 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Tue, 27 Jul 2010 08:17:38 +0000 (02:17 -0600)
horde/index.php
horde/login.php

index fb17aef..48a8176 100644 (file)
@@ -55,7 +55,8 @@ if (!$main_page) {
     } else {
         /* Search for a user-specified initial application. */
         $initial_app = $prefs->getValue('initial_application');
-        if (!empty($initial_app) &&
+        if (Horde_Util::nonInputVar('login_redirect') &&
+            !empty($initial_app) &&
             ($initial_app != 'horde') &&
             $registry->hasPermission($initial_app)) {
             $main_page = Horde::url($initial_app, true) . '/';
index 128dafe..b8ee877 100644 (file)
@@ -217,6 +217,7 @@ if ($error_reason) {
             }
         }
 
+        $login_redirect = true;
         require HORDE_BASE . '/index.php';
         exit;
     }