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:
authorToni Förster <toni.foerster@gmail.com>2014-08-26 19:08:46 +0400
committerToni Förster <toni.foerster@gmail.com>2014-08-26 19:08:46 +0400
commit7eb4f0b9077adec0f39d33a658072e09625be68e (patch)
treef756380a920761cd65693db2448360d20bbef117 /user_external
parent8520836ef3cd5082fe9aeb602d4afe3441a40ef4 (diff)
Limit the number of maximum connect attempts to 1
http://php.net/manual/en/function.imap-open.php
Diffstat (limited to 'user_external')
-rw-r--r--user_external/lib/imap.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/user_external/lib/imap.php b/user_external/lib/imap.php
index ae1ef6730..3ccebf094 100644
--- a/user_external/lib/imap.php
+++ b/user_external/lib/imap.php
@@ -42,7 +42,7 @@ 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) {