Changeset 1643

Show
Ignore:
Timestamp:
06/19/08 18:26:22 (3 months ago)
Author:
richi
Message:

peer::ldap: small dn regex bugfix

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/main/php/net/stubbles/peer/ldap/stubLDAPURL.php

    r1628 r1643  
    103103    { 
    104104        // check scheme, user/password & host syntax (in general) 
    105         if (parent::isValid() !== true) { 
     105        if (parent::isValid() === false) { 
    106106            return false; 
    107107        } 
     
    113113 
    114114        // check dn 
    115         if(preg_match('/^([A-Za-z]+=[A-Za-z ]+,?)*$/', $this->url['base_dn']) === 0) { 
     115        if(preg_match('/^([A-Za-z0-9]+=[A-Za-z0-9 ]+,?)*$/', $this->url['base_dn']) === 0) { 
    116116            return false; 
    117117        }