From 7e8249e801bd845b1600cec4ca006920628403c6 Mon Sep 17 00:00:00 2001 From: Thibault Dockx <thibault.dockx@fusiondirectory.org> Date: Thu, 28 Jul 2022 12:19:05 +0100 Subject: [PATCH] :ambulance: Fix(Ldap) - Fixes ldap.inc filter ldap filter methodes are now fixed --- include/class_ldap.inc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/class_ldap.inc b/include/class_ldap.inc index 6adda3f6b..a287777f9 100644 --- a/include/class_ldap.inc +++ b/include/class_ldap.inc @@ -297,7 +297,7 @@ class LDAP * * \param array $attrs */ - function ls ($srp, $filter = " (objectclass=*)", $basedn = "", $attrs = ["*"]) + function ls ($srp, $filter = "(objectclass=*)", $basedn = "", $attrs = ["*"]) { trigger_error('deprecated'); $this->cd($basedn); @@ -315,7 +315,7 @@ class LDAP * * \param string $filter Initialized at "(objectclass=*)" */ - function cat ($srp, $dn, $attrs = ["*"], $filter = " (objectclass=*)") + function cat ($srp, $dn, $attrs = ["*"], $filter = "(objectclass=*)") { if ($this->hascon) { if ($this->reconnect) { @@ -959,7 +959,7 @@ class LDAP * * \param $limit Limits the result. */ - function generateLdif ($dn, $filter = " (objectClass=*)", $scope = 'sub', $limit = 0) + function generateLdif ($dn, $filter = "(objectClass=*)", $scope = 'sub', $limit = 0) { // Ensure that limit is numeric if not skip here. if (!empty($limit) && !is_numeric($limit)) { -- GitLab