Page MenuHomePhorge

D4025.1775514718.diff
No OneTemporary

Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None

D4025.1775514718.diff

diff --git a/lib/kolab_sync.php b/lib/kolab_sync.php
--- a/lib/kolab_sync.php
+++ b/lib/kolab_sync.php
@@ -45,6 +45,8 @@
public $username;
public $password;
+ public $task = null;
+
const CHARSET = 'UTF-8';
const VERSION = "2.3.22";
@@ -207,7 +209,7 @@
}
// LDAP server failure... send 503 error
- if ($auth['kolab_ldap_error']) {
+ if ($auth['kolab_ldap_error'] ?? null) {
self::server_error();
}
@@ -223,7 +225,7 @@
}
// Authenticate - get Roundcube user ID
- if (!$auth['abort'] && ($userid = $this->login($auth['user'], $auth['pass'], $auth['host'], $err))) {
+ if (!($auth['abort'] ?? false) && ($userid = $this->login($auth['user'], $auth['pass'], $auth['host'], $err))) {
// set real username
$this->username = $auth['user'];
return $userid;
@@ -298,6 +300,7 @@
// parse $host
$a_host = parse_url($host);
+ $port = null;
if ($a_host['host']) {
$host = $a_host['host'];
$ssl = (isset($a_host['scheme']) && in_array($a_host['scheme'], array('ssl','imaps','tls'))) ? $a_host['scheme'] : null;

File Metadata

Mime Type
text/plain
Expires
Mon, Apr 6, 10:31 PM (3 h, 11 m ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
18836334
Default Alt Text
D4025.1775514718.diff (1 KB)

Event Timeline