PHP 8.5.0 Beta 1 available for testing

Voting

: max(six, one)?
(Example: nine)

The Note You're Voting On

darkstar_ae at hotmail dot com
19 years ago
This may be a security issue but after tinkering for hours with the below ldap auth function (edi01 at gmx dot at), I discovered that the ldap_bind function will return true if you enter a valid username AND a NULL value!

so if that function were to receive something like $username = 'someuser' and $password = '', it would return true. As long as it isn't a null value the function will work as expected. Might as well check if it is null or empty then.

<< Back to user notes page

To Top