]> git.pld-linux.org Git - packages/dokuwiki.git/commitdiff
- header encode fix: put double quotes outside the encoding. fixes evolution display
authorElan Ruusamäe <glen@pld-linux.org>
Mon, 25 Feb 2008 14:39:41 +0000 (14:39 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    dokuwiki-mail-headerencodequotes.patch -> 1.1

dokuwiki-mail-headerencodequotes.patch [new file with mode: 0644]

diff --git a/dokuwiki-mail-headerencodequotes.patch b/dokuwiki-mail-headerencodequotes.patch
new file mode 100644 (file)
index 0000000..0eecb66
--- /dev/null
@@ -0,0 +1,16 @@
+--- dokuwiki/inc/mail.php~     2008-02-25 16:32:34.000000000 +0200
++++ dokuwiki/inc/mail.php      2008-02-25 16:32:58.878702838 +0200
+@@ -124,7 +125,12 @@
+       }
+       if(!utf8_isASCII($text)){
+-        $text = '=?UTF-8?Q?'.mail_quotedprintable_encode($text,0).'?=';
++        // put the quotes outside as in =?UTF-8?Q?"Elan Ruusam=C3=A4e"?= vs "=?UTF-8?Q?Elan Ruusam=C3=A4e?="
++        if (preg_match('/^"(.+)"$/', $text, $matches)) {
++          $text = '"=?UTF-8?Q?'.mail_quotedprintable_encode($matches[1],0).'?="';
++        } else {
++          $text = '=?UTF-8?Q?'.mail_quotedprintable_encode($text,0).'?=';
++        }
+       }
+     }else{
+       $text = '';
This page took 0.101311 seconds and 4 git commands to generate.