Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/apps.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2015-01-20 15:14:25 +0300
committerRobin Appelman <robin@icewind.nl>2015-01-20 15:14:25 +0300
commitd54ae7e9de4fb5c1ca17d4b0c01a2f42ee7c2206 (patch)
tree7b2fb99e5971a7a160a8e75fc8a4d8e815f7e538 /user_external
parenta857f6368201e62eae73a5a1ea330cce42de6aa0 (diff)
parent7eb4f0b9077adec0f39d33a658072e09625be68e (diff)
Merge pull request #1898 from stonerl/master
fix for #1693
Diffstat (limited to 'user_external')
-rw-r--r--user_external/lib/imap.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/user_external/lib/imap.php b/user_external/lib/imap.php
index c39593ce4..3ccebf094 100644
--- a/user_external/lib/imap.php
+++ b/user_external/lib/imap.php
@@ -42,11 +42,12 @@ class OC_User_IMAP extends \OCA\user_external\Base {
OCP\Util::writeLog('user_external', 'ERROR: PHP imap extension is not installed', OCP\Util::ERROR);
return false;
}
- $mbox = @imap_open($this->mailbox, $uid, $password, OP_HALFOPEN);
+ $mbox = @imap_open($this->mailbox, $uid, $password, OP_HALFOPEN, 1);
imap_errors();
imap_alerts();
if($mbox !== FALSE) {
imap_close($mbox);
+ $uid = mb_strtolower($uid);
$this->storeUser($uid);
return $uid;
}else{