mirror of
https://github.com/bilde2910/Hauk.git
synced 2026-01-23 02:24:09 +00:00
Escape LDAP string
This commit is contained in:
parent
b169caf778
commit
cc4c43ba49
1 changed files with 1 additions and 1 deletions
|
|
@ -825,7 +825,7 @@ function authenticated() {
|
|||
if ($ldbind === false) die($LANG["ldap_connection_failed"]);
|
||||
|
||||
// Search for the user.
|
||||
$ldsearch = @ldap_search($ldc, getConfig("ldap_base_dn"), str_replace("%s", $_POST["usr"], getConfig("ldap_user_filter")), array("dn"));
|
||||
$ldsearch = @ldap_search($ldc, getConfig("ldap_base_dn"), str_replace("%s", ldap_escape($_POST["usr"]), getConfig("ldap_user_filter")), array("dn"));
|
||||
if ($ldsearch === false) {
|
||||
ldap_unbind($ldc);
|
||||
die($LANG["ldap_search_failed"]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue