Skip to content

Commit

Permalink
Update imap.php
Browse files Browse the repository at this point in the history
  • Loading branch information
bilbolodz authored May 20, 2020
1 parent 03fc73e commit ddbfdc0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/imap.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public function checkPassword($uid, $password) {
$username = $uid;
}

if ($this->user_regexp != '') {
if ($this->user_regexp !== '') {
if (!preg_match('/'.$this->user_regexp.'/', $username)) {
OC::$server->getLogger()->error(
'ERROR: User:'.$username.' does NOT match user regexp: '.$this->user_regexp,
Expand Down

0 comments on commit ddbfdc0

Please sign in to comment.