fixed passwords with quotes (1081460)
This commit is contained in:
parent
79bc0637cd
commit
f36ccd3a73
|
@ -294,6 +294,9 @@ if($_POST['checklogin'])
|
||||||
}
|
}
|
||||||
else
|
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
|
$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.
|
||||||
|
|
|
@ -299,6 +299,9 @@ if($_POST['checklogin'])
|
||||||
}
|
}
|
||||||
else
|
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
|
$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.
|
||||||
|
|
Loading…
Reference in New Issue