mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-27 11:09:20 +03:00
Fix for previous commit regarding UTF-8 #1230
This commit is contained in:
parent
037ed7e257
commit
a3bb108b33
1 changed files with 4 additions and 4 deletions
|
|
@ -391,8 +391,8 @@ trait Messages
|
|||
$oESearch->aReturn = $aSearchReturn;
|
||||
$oESearch->bUid = $bReturnUid;
|
||||
$oESearch->sLimit = $sLimit;
|
||||
// if (!$this->UTF8Mode() && !\mb_check_encoding($sSearchCriterias, 'UTF-8')) {
|
||||
if (!$this->UTF8Mode() && !\MailSo\Base\Utils::IsAscii($sSearchCriterias)) {
|
||||
// if (!$this->UTF8 && !\mb_check_encoding($sSearchCriterias, 'UTF-8')) {
|
||||
if (!$this->UTF8 && !\MailSo\Base\Utils::IsAscii($sSearchCriterias)) {
|
||||
$oESearch->sCharset = 'UTF-8';
|
||||
}
|
||||
$oESearch->SendRequest();
|
||||
|
|
@ -426,8 +426,8 @@ trait Messages
|
|||
public function MessageSimpleSearch(string $sSearchCriterias = 'ALL', bool $bReturnUid = true) : array
|
||||
{
|
||||
$aRequest = array();
|
||||
// if (!$this->UTF8Mode() && !\mb_check_encoding($sSearchCriterias, 'UTF-8')) {
|
||||
if (!$this->UTF8Mode() && !\MailSo\Base\Utils::IsAscii($sSearchCriterias)) {
|
||||
// if (!$this->UTF8 && !\mb_check_encoding($sSearchCriterias, 'UTF-8')) {
|
||||
if (!$this->UTF8 && !\MailSo\Base\Utils::IsAscii($sSearchCriterias)) {
|
||||
$aRequest[] = 'CHARSET';
|
||||
$aRequest[] = 'UTF-8';
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue