mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-21 05:19:07 +01:00
remove unneeded space between header parts
This commit is contained in:
parent
d40ea5c6eb
commit
2f95098c04
@ -221,18 +221,18 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function decode_header($string)
|
function decode_header($_string)
|
||||||
{
|
{
|
||||||
#print "decode header: $string<br><br>";
|
|
||||||
$newString = '';
|
$newString = '';
|
||||||
|
|
||||||
|
$string = preg_replace('/\?=\s+=\?/', '?= =?', $_string);
|
||||||
|
|
||||||
$elements=imap_mime_header_decode($string);
|
$elements=imap_mime_header_decode($string);
|
||||||
for($i=0;$i<count($elements);$i++)
|
|
||||||
{
|
foreach((array)$elements as $element) {
|
||||||
#echo "Charset: {$elements[$i]->charset}<br>";
|
if ($element->charset == 'default')
|
||||||
#echo "Text: {$elements[$i]->text}<BR><BR>";
|
$element->charset = 'iso-8859-1';
|
||||||
if ($elements[$i]->charset == 'default')
|
$tempString = $this->botranslation->convert($element->text,$element->charset);
|
||||||
$elements[$i]->charset = 'iso-8859-1';
|
|
||||||
$tempString = $this->botranslation->convert($elements[$i]->text,$elements[$i]->charset);
|
|
||||||
$newString .= $tempString;
|
$newString .= $tempString;
|
||||||
}
|
}
|
||||||
return $newString;
|
return $newString;
|
||||||
|
Loading…
Reference in New Issue
Block a user