Skip to content

Commit

Permalink
fix uninitialized $ldap_scope parameter in sendsms (#921)
Browse files Browse the repository at this point in the history
  • Loading branch information
David Coutadeur committed Aug 28, 2024
1 parent a9bdde2 commit b742d6b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions htdocs/sendsms.php
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@
$decrypted_sms_login = explode(':', decrypt($_REQUEST["encrypted_sms_login"], $keyphrase));
$login = $decrypted_sms_login[1];
[$result, $sms, $displayname, $userdn] = get_user_infos(
$ldapInstance, $ldap_base, $ldap_filter,
$ldapInstance, $ldap_base, $ldap_filter, $ldap_scope,
$ldap_fullname_attribute, $sms_attributes,
$sms_sanitize_number, $sms_truncate_number,
$obscure_notfound_sendsms, $token,
Expand All @@ -156,7 +156,7 @@
#==============================================================================
if ( $result === "" ) {
[$result, $sms, $displayname, $userdn] = get_user_infos(
$ldapInstance, $ldap_base, $ldap_filter,
$ldapInstance, $ldap_base, $ldap_filter, $ldap_scope,
$ldap_fullname_attribute, $sms_attributes,
$sms_sanitize_number, $sms_truncate_number,
$obscure_notfound_sendsms, $token,
Expand Down Expand Up @@ -331,7 +331,7 @@ function truncate_number($phone_number){
}

# Function returning user's DN, displayname and sms
function get_user_infos($ldapInstance, $ldap_base, $ldap_filter,
function get_user_infos($ldapInstance, $ldap_base, $ldap_filter, $ldap_scope,
$ldap_fullname_attribute, $sms_attributes,
$sms_sanitize_number, $sms_truncate_number,
$obscure_notfound_sendsms, $token,
Expand Down

0 comments on commit b742d6b

Please sign in to comment.