Changeset 1099161
- Timestamp:
- 02/25/2015 11:42:43 AM (11 years ago)
- Location:
- active-directory-integration/trunk
- Files:
-
- 2 edited
-
ad_ldap/adLDAP.php (modified) (3 diffs)
-
bulkimport.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
active-directory-integration/trunk/ad_ldap/adLDAP.php
r674096 r1099161 16 16 * to benefit the entire community :) 17 17 * 18 * EXTENDED with the ability to change the port, recursive_groups bug fix 19 * and paging support by18 * EXTENDED with the ability to change the port, recursive_groups bug fix, 19 * some minor bug fixes and paging support by 20 20 * Christoph Steindorff 21 21 * email: christoph@steindorff.de … … 38 38 * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html LGPLv2.1 39 39 * @revision $Revision: 91 $ 40 * @version 3.3.2 EXTENDED (201 302271401)40 * @version 3.3.2 EXTENDED (201502251229) 41 41 * @link http://adldap.sourceforge.net/ 42 42 */ … … 2575 2575 * @return string 2576 2576 */ 2577 protected function ldap_slashes($str){2577 /*protected function ldap_slashes($str){ 2578 2578 return preg_replace('/([\x00-\x1F\*\(\)\\\\])/e', 2579 2579 '"\\\\\".join("",unpack("H2","$1"))', 2580 2580 $str); 2581 } 2581 }*/ 2582 2583 /** 2584 * Escape strings for the use in LDAP filters 2585 * 2586 * DEVELOPERS SHOULD BE DOING PROPER FILTERING IF THEY'RE ACCEPTING USER INPUT 2587 * Ported from Perl's Net::LDAP::Util escape_filter_value 2588 * 2589 * @param string $str The string the parse 2590 * @author Port by Andreas Gohr <andi@splitbrain.org> 2591 * @author Modified for PHP55 by Esteban Santana Santana <MentalPower@GMail.com> 2592 * @return string 2593 */ 2594 public function ldap_slashes($str){ 2595 return preg_replace_callback( 2596 '/([\x00-\x1F\*\(\)\\\\])/', 2597 function ($matches) { 2598 return "\\".join("", unpack("H2", $matches[1])); 2599 }, 2600 $str 2601 ); 2602 } 2582 2603 2583 2604 /** -
active-directory-integration/trunk/bulkimport.php
r674096 r1099161 277 277 278 278 } else { 279 279 280 280 // Only user accounts (UF_NORMAL_ACCOUNT is set and other account flags are unset) 281 281 if (($userinfo["useraccountcontrol"][0] & (UF_NORMAL_ACCOUNT | ADI_NO_UF_NORMAL_ACOUNT)) == UF_NORMAL_ACCOUNT) { … … 360 360 361 361 // Log Level 362 if (isset($_REQUEST['debug']) ) {362 if (isset($_REQUEST['debug']) || WP_DEBUG === TRUE) { 363 363 $ADI->setLogLevel(ADI_LOG_DEBUG); 364 364 } else {
Note: See TracChangeset
for help on using the changeset viewer.