Changeset 5793 in subversion


Ignore:
Timestamp:
Jan 18, 2012 8:16:04 AM (16 months ago)
Author:
alec
Message:
  • Handle ldap_public misconfiguration
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/roundcubemail/program/include/rcmail.php

    r5787 r5793  
    490490    if ($ldap_config) { 
    491491      $ldap_config = (array) $ldap_config; 
    492       foreach ($ldap_config as $id => $prop) 
     492      foreach ($ldap_config as $id => $prop) { 
     493        // handle misconfiguration 
     494        if (empty($prop) || !is_array($prop)) { 
     495          continue; 
     496        } 
    493497        $list[$id] = array( 
    494498          'id'       => $id, 
     
    499503          'autocomplete' => in_array($id, $autocomplete) 
    500504        ); 
     505      } 
    501506    } 
    502507 
Note: See TracChangeset for help on using the changeset viewer.