Ignore:
Timestamp:
02/07/13 17:08:23 (11 years ago)
Author:
alexandrecorreia
Message:

Ticket #2507 - Fazendo a busca somente pelo lid ( literal id = uid )

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sandbox/webservice/api/adapters/AdminAdapter.php

    r7873 r7875  
    112112        } 
    113113 
     114        protected function listUsersLiteral($params) 
     115        { 
     116                $list = $this->listUsers($params); 
     117 
     118                foreach( $list as $key => $users ) 
     119                { 
     120                        if( strtolower(trim($params)) === strtolower(trim($users['account_lid']))) 
     121                        { 
     122                                return $list[$key]; 
     123                        } 
     124                } 
     125 
     126                return false; 
     127        } 
     128 
    114129        protected function listUsers($params) 
    115130        { 
     
    118133                $acl = $adminListUser->read_acl($GLOBALS['phpgw']->accounts->data['account_lid']); 
    119134 
    120                 $search = trim(preg_replace("/[^a-z_0-9_-_._@]/", "", $params)); 
     135                $search = trim(preg_replace("/[^a-z_0-9_-_._@\\s]/", "", $params)); 
    121136 
    122137                $accounts = $adminListUser->get_list( 'accounts', $search, $acl['contexts'] ); 
Note: See TracChangeset for help on using the changeset viewer.