X-Git-Url: https://git-public.kairo.at/?p=php-utility-classes.git;a=blobdiff_plain;f=classes%2Femail.php-class;h=80a66ccd633c3e4c82114d90e3283d65b194782e;hp=4f35aa2054ce4d299892ac61aa22693f7933dd1e;hb=1a4ee0f0263c463f59bfb272435ef9f83fdffaa7;hpb=9efda7dacdc049ae84d07141ddd545885bf77cb6;ds=sidebyside diff --git a/classes/email.php-class b/classes/email.php-class index 4f35aa2..80a66cc 100644 --- a/classes/email.php-class +++ b/classes/email.php-class @@ -373,7 +373,7 @@ class email { // encode x09,x20 at lineends { $iLength = strlen($sLine); - $iLastChar = ord($sLine{$iLength-1}); + $iLastChar = ord($sLine[$iLength-1]); // !!!!!!!! // imap_8_bit does not encode x20 at the very end of a text, @@ -383,7 +383,7 @@ class email { if (!($bEmulate_imap_8bit && ($i==count($aLines)-1))) if (($iLastChar==0x09)||($iLastChar==0x20)) { - $sLine{$iLength-1}='='; + $sLine[$iLength-1]='='; $sLine .= ($iLastChar==0x09)?'09':'20'; } } // imap_8bit encodes x20 before chr(13), too