Skip to content

Commit 96b712f

Browse files
Peter Vanpouckepeter-vanpoucke
authored andcommitted
Add domainSplitter: check if replace is still necessary
Signed-off-by: Peter Vanpoucke <[email protected]>
1 parent 624f064 commit 96b712f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/imap.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,9 @@ public function checkPassword($uid, $password) {
6161

6262
// Replace escaped splitter in uid
6363
// but only if there is no splitter symbol and if there is a escaped splitter inside the uid
64-
if (!(strpos($uid, $this->domainSplitter) !== false) && (strpos($uid, $domainSplitterEncoded) !== false)) {
64+
if (($this->domainSplitter != $domainSplitterEncoded)
65+
&& !(strpos($uid, $this->domainSplitter) !== false)
66+
&& (strpos($uid, $domainSplitterEncoded) !== false)) {
6567
$uid = str_replace($domainSplitterEncoded,$this->domainSplitter,$uid);
6668
}
6769

0 commit comments

Comments
 (0)