SOURCES: dokuwiki-mail-headerencodequotes.patch (NEW) - header enc...

glen glen at pld-linux.org
Mon Feb 25 15:39:46 CET 2008


Author: glen                         Date: Mon Feb 25 14:39:46 2008 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- header encode fix: put double quotes outside the encoding. fixes evolution display

---- Files affected:
SOURCES:
   dokuwiki-mail-headerencodequotes.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SOURCES/dokuwiki-mail-headerencodequotes.patch
diff -u /dev/null SOURCES/dokuwiki-mail-headerencodequotes.patch:1.1
--- /dev/null	Mon Feb 25 15:39:46 2008
+++ SOURCES/dokuwiki-mail-headerencodequotes.patch	Mon Feb 25 15:39:41 2008
@@ -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 = '';
================================================================


More information about the pld-cvs-commit mailing list