Skip to content
Snippets Groups Projects
Commit b82be6e4 authored by Jean-Philippe Metivier's avatar Jean-Philippe Metivier
Browse files

curly et argument excedentaire

parent 77acdffa
No related branches found
No related tags found
No related merge requests found
Pipeline #32303 failed
...@@ -2215,7 +2215,7 @@ class People extends Entity ...@@ -2215,7 +2215,7 @@ class People extends Entity
$uni = ''; $uni = '';
$value = (string)$value; $value = (string)$value;
for ($i = 0; $i < strlen($value); $i++) { for ($i = 0; $i < strlen($value); $i++) {
$a = ord($value{$i}) << 8; $a = ord($value[$i]) << 8;
$uni .= sprintf('%X', $a); $uni .= sprintf('%X', $a);
} }
$nthash = hash("md4", pack('H*', $uni), true); $nthash = hash("md4", pack('H*', $uni), true);
...@@ -2238,7 +2238,7 @@ class People extends Entity ...@@ -2238,7 +2238,7 @@ class People extends Entity
$uni = ''; $uni = '';
$value = (string)$value; $value = (string)$value;
for ($i = 0; $i < strlen($value); $i++) { for ($i = 0; $i < strlen($value); $i++) {
$a = ord($value{$i}) << 8; $a = ord($value[$i]) << 8;
$uni .= sprintf('%X', $a); $uni .= sprintf('%X', $a);
} }
$nthash = hash("md4", pack('H*', $uni), true); $nthash = hash("md4", pack('H*', $uni), true);
......
...@@ -337,7 +337,7 @@ abstract class AbstractService implements ...@@ -337,7 +337,7 @@ abstract class AbstractService implements
$berIdentifier = null; $berIdentifier = null;
$name = ldap_first_attribute( $name = ldap_first_attribute(
$resource, $entry, $berIdentifier $resource, $entry//, $berIdentifier
); );
$attributes = array(); $attributes = array();
...@@ -359,8 +359,7 @@ abstract class AbstractService implements ...@@ -359,8 +359,7 @@ abstract class AbstractService implements
$attributes[$attrName] = $data; $attributes[$attrName] = $data;
$name = ldap_next_attribute( $name = ldap_next_attribute(
$resource, $entry, $resource, $entry//, $berIdentifier
$berIdentifier
); );
} }
ksort($attributes, SORT_LOCALE_STRING); ksort($attributes, SORT_LOCALE_STRING);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment