MantisBT: master-2.26 bcc4c050

Author Committer Branch Timestamp Parent
dregad dregad master-2.26 2024-08-09 06:16 master-2.26 0dfa066b
Affected Issues  0034571: ldap_simulation_get_user() does not return null when given non-string username
Changeset

Return null when user not found in LDAP simulation

When $p_username parameter is not a string, ldap_simulation_get_user()
returned the first user found in the LDAP simulation file instead of
null as expected.

Using strict comparison fixes the problem.

Fixes 0034571

mod - core/ldap_api.php Diff File