[dev] Gollem :: Patch for $backend_key

Joel Vandal jvandal at infoteck.qc.ca
Tue Apr 13 10:24:39 PDT 2004


Hi,

Patch for gollem/login.php :

- $backkey is undefined... IMO it must be $backend_key
- redirect.php need the $backend_key for  the createSession but is missing

Index: login.php
===================================================================
RCS file: /repository/gollem/login.php,v
retrieving revision 1.63
diff -u -r1.63 login.php
--- login.php   9 Apr 2004 19:48:46 -0000       1.63
+++ login.php   13 Apr 2004 17:20:18 -0000
@@ -65,7 +65,7 @@
     $backends_list = '';

     foreach ($backends as $key => $curBackend) {
-        $sel = ($key == $backkey) ? ' selected="selected"' : '';
+        $sel = ($key == $backend_key) ? ' selected="selected"' : '';
         $backends_list .= "<option value=\"$key\"$sel>";
         $backends_list .= $curBackend['name'] . '</option>';
     }
@@ -85,6 +85,8 @@
     Gollem::canAutoLogin($backend_key, $autologin)) {
     $url = Horde::applicationUrl('redirect.php', true);
     $url = Util::addParameter($url, 'actionID', 'login');
+    $url = Util::addParameter($url, 'backend_key', $backend_key);
+
     header('Location: ' . $url);
     exit;
 }


-- 
Joel Vandal                                    Infoteck Internet
http://www.infoteck.qc.ca            Tel.  819-370-3232
jvandal at infoteck.qc.ca                 Fax. 819-370-3624


More information about the dev mailing list