From 913e961ad5dde86c9b71dff609cba245dcbc6bfd Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Sat, 6 Dec 2003 13:40:01 +0000 Subject: [PATCH] fixed bug with invalid hostnames --- lam/templates/login.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lam/templates/login.php b/lam/templates/login.php index 7a00f9c7..fea60f35 100644 --- a/lam/templates/login.php +++ b/lam/templates/login.php @@ -287,7 +287,7 @@ if($_POST['action'] == "checklogin") { $result = $_SESSION['ldap']->connect($_POST['username'],$_POST['passwd']); // Connect to LDAP server for verifing username/password - if($result == 0) // Username/password correct. Do some configuration and load main frame. + if($result === 0) // Username/password correct. Do some configuration and load main frame. { $_SESSION['loggedIn'] = true; $_SESSION['language'] = $_POST['language']; // Write selected language in session