fixed passwords with quotes (1081460)

This commit is contained in:
Roland Gruber 2004-12-16 19:29:28 +00:00
parent 79bc0637cd
commit f36ccd3a73
2 changed files with 6 additions and 0 deletions

View File

@ -294,6 +294,9 @@ if($_POST['checklogin'])
}
else
{
if (get_magic_quotes_gpc() == 1) {
$_POST['passwd'] = stripslashes($_POST['passwd']);
}
$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.

View File

@ -299,6 +299,9 @@ if($_POST['checklogin'])
}
else
{
if (get_magic_quotes_gpc() == 1) {
$_POST['passwd'] = stripslashes($_POST['passwd']);
}
$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.