]>
Commit | Line | Data |
---|---|---|
673aa20a ER |
1 | --- dokuwiki/inc/mail.php~ 2008-02-25 16:32:34.000000000 +0200 |
2 | +++ dokuwiki/inc/mail.php 2008-02-25 16:32:58.878702838 +0200 | |
3 | @@ -124,7 +125,12 @@ | |
4 | } | |
5 | ||
6 | if(!utf8_isASCII($text)){ | |
7 | - $text = '=?UTF-8?Q?'.mail_quotedprintable_encode($text,0).'?='; | |
8 | + // put the quotes outside as in =?UTF-8?Q?"Elan Ruusam=C3=A4e"?= vs "=?UTF-8?Q?Elan Ruusam=C3=A4e?=" | |
9 | + if (preg_match('/^"(.+)"$/', $text, $matches)) { | |
10 | + $text = '"=?UTF-8?Q?'.mail_quotedprintable_encode($matches[1],0).'?="'; | |
11 | + } else { | |
12 | + $text = '=?UTF-8?Q?'.mail_quotedprintable_encode($text,0).'?='; | |
13 | + } | |
14 | } | |
15 | }else{ | |
16 | $text = ''; |