Skip to content
Snippets Groups Projects
Commit 6ab1a1b7 authored by Jeroen van Meeuwen (Kolab Systems)'s avatar Jeroen van Meeuwen (Kolab Systems)
Browse files

Prevent miscomparison between a preferred sort on the client (application) and...

Prevent miscomparison between a preferred sort on the client (application) and the configured sort on the server
parent 7803d0ff
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -1847,12 +1847,15 @@ class Net_LDAP3
// Not passing any sort attributes means you don't care
if (!empty($sort_attrs)) {
$sort_attrs = (array) $sort_attrs;
if (count(array_intersect($sort_attrs, $vlv_index[$base_dn]['sort'])) == count($sort_attrs)) {
return $sort_attrs;
}
else {
return false;
foreach ($vlv_index[$base_dn]['sort'] as $sss_config) {
if (count(array_intersect($sort_attrs, $sss_config)) == count($sort_attrs)) {
return $sort_attrs;
}
}
$this->_error("The requested sorting does not match any server-side sorting configuration");
return false;
}
else {
return $vlv_index[$base_dn]['sort'][0];
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment