imap : the cert validation switch was not functionnal
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2378 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
3
imap.php
3
imap.php
@@ -44,7 +44,7 @@ class imap
|
|||||||
if ($password === null)
|
if ($password === null)
|
||||||
throw new Exception ("No password provided for IMAP server", 500);
|
throw new Exception ("No password provided for IMAP server", 500);
|
||||||
$imapssl = ($imapssl !== false) ? "/ssl" : "";
|
$imapssl = ($imapssl !== false) ? "/ssl" : "";
|
||||||
$imapcertvalidate = ($imapcertvalidate !== false) ? "/novalidate-cert" : "";
|
$imapcertvalidate = ($imapcertvalidate === false) ? "/novalidate-cert" : "";
|
||||||
$this->mailbox = "{"."$imapserver:$imapport/imap$imapssl$imapcertvalidate".
|
$this->mailbox = "{"."$imapserver:$imapport/imap$imapssl$imapcertvalidate".
|
||||||
"/user=$username}";
|
"/user=$username}";
|
||||||
if (! array_key_exists ($this->mailbox, self::$instance))
|
if (! array_key_exists ($this->mailbox, self::$instance))
|
||||||
@@ -174,6 +174,7 @@ class imap
|
|||||||
$res = array_map (function ($folder) {
|
$res = array_map (function ($folder) {
|
||||||
return mb_convert_encoding ($folder, "UTF-8", "UTF7-IMAP");
|
return mb_convert_encoding ($folder, "UTF-8", "UTF7-IMAP");
|
||||||
}, $res);
|
}, $res);
|
||||||
|
natsort ($res);
|
||||||
return $res;
|
return $res;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user