Skip to content

Commit

Permalink
fix strtolower() warning
Browse files Browse the repository at this point in the history
  • Loading branch information
davidpanderson committed Dec 4, 2023
1 parent 7aeb4e7 commit adca07d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion html/user/login_action.php
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,10 @@ function login_with_ldap($uid, $passwd, $next_url, $perm) {
exit;
}

$email_addr = strtolower(sanitize_tags(post_str("email_addr", true)));
$email_addr = post_str("email_addr", true);
if ($email_addr) {
$email_addr = strtolower(sanitize_tags($email_addr));
}
$passwd = post_str("passwd", true);
if ($email_addr && $passwd) {
if (LDAP_HOST && !is_valid_email_addr($email_addr)) {
Expand Down

0 comments on commit adca07d

Please sign in to comment.