Changeset 7875 for sandbox/webservice/api/adapters
- Timestamp:
- 02/07/13 17:08:23 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sandbox/webservice/api/adapters/AdminAdapter.php
r7873 r7875 112 112 } 113 113 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 114 129 protected function listUsers($params) 115 130 { … … 118 133 $acl = $adminListUser->read_acl($GLOBALS['phpgw']->accounts->data['account_lid']); 119 134 120 $search = trim(preg_replace("/[^a-z_0-9_-_._@ ]/", "", $params));135 $search = trim(preg_replace("/[^a-z_0-9_-_._@\\s]/", "", $params)); 121 136 122 137 $accounts = $adminListUser->get_list( 'accounts', $search, $acl['contexts'] );
Note: See TracChangeset
for help on using the changeset viewer.