Commit 29ca9876 authored by Côme Chilliet's avatar Côme Chilliet

Merge branch 'stricter-ldap-error-check' into '1.4-dev'

🚑 fix(ldap) Use a stricter error check in ldap::success()

See merge request fusiondirectory/fd!648
parents 5602f81a 23936352
......@@ -957,7 +957,7 @@ class LDAP
*/
function success ()
{
return preg_match('/Success/i', $this->error);
return (trim($this->error) === 'Success');
}
/*!
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment