Changeset 5593 for trunk/expressoAdmin1_2/inc/class.ldap_functions.inc.php
- Timestamp:
- 03/01/12 10:37:23 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/expressoAdmin1_2/inc/class.ldap_functions.inc.php
r5509 r5593 131 131 } 132 132 133 if (! eregi("^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)+$", $params['mail']) )133 if (! preg_match('/^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)+$/i', $params['mail']) ) 134 134 { 135 135 $result['status'] = false; … … 235 235 } 236 236 237 if (! eregi("^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)+$", $params['mail']) )237 if (! preg_match('/^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)+$/i', $params['mail']) ) 238 238 { 239 239 $result['status'] = false; … … 338 338 } 339 339 340 if (! eregi("^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)+$", $params['mail']) )340 if (! preg_match('/^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)+$/i', $params['mail']) ) 341 341 { 342 342 $result['status'] = false; … … 461 461 } 462 462 463 if (! eregi("^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)+$", $params['mail']) )463 if (! preg_match('/^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)+$/i', $params['mail']) ) 464 464 { 465 465 $result['status'] = false; … … 656 656 { 657 657 //Obtenho UID sem a organização. Na criação o uid já vem sem a organização 658 $tmp_uid_without_org = split("-", $params['uid']);658 $tmp_uid_without_org = preg_split('/-/', $params['uid']); 659 659 $tmp_reverse_uid_without_org = array_reverse($tmp_uid_without_org); 660 660 array_pop($tmp_reverse_uid_without_org); … … 671 671 { 672 672 //Obtenho UID sem a organização. Na criação o uid já vem sem a organização 673 $tmp_uid_without_org = split("-", $params['uid']);673 $tmp_uid_without_org = preg_split('/-/', $params['uid']); 674 674 $tmp_reverse_uid_without_org = array_reverse($tmp_uid_without_org); 675 675 array_pop($tmp_reverse_uid_without_org); … … 724 724 //Obtenho UID sem a organização 725 725 /* 726 $tmp_uid_without_org = split("-", $params['uid']);726 $tmp_uid_without_org = preg_split('/-/', $params['uid']); 727 727 if (count($tmp_uid_without_org) < 2) 728 728 { … … 2666 2666 else 2667 2667 { 2668 $tmp_user_context = split(",", utf8_decode($entrie[0]['dn']));2668 $tmp_user_context = preg_split('/,/', utf8_decode($entrie[0]['dn'])); 2669 2669 $tmp_reverse_user_context = array_reverse($tmp_user_context); 2670 2670 array_pop($tmp_reverse_user_context); … … 2760 2760 else 2761 2761 { 2762 $tmp_user_context = split(",", $entrie[0]['dn']);2762 $tmp_user_context = preg_split('/,/', $entrie[0]['dn']); 2763 2763 $tmp_reverse_user_context = array_reverse($tmp_user_context); 2764 2764 array_pop($tmp_reverse_user_context);
Note: See TracChangeset
for help on using the changeset viewer.