# HG changeset patch # User wolfgang.scherer@gmx.de # Date 2012-03-30 18:40:19 # Node ID 92edb84b78e1198922db74558569bb2a46621afa # Parent e1662057b783c07822b6a9332a3d8e4f8a243520 lib/util.php: poor man's quoted_printable_encode messes up $SUBJECT. That's what you get for using cut 'n paste blocks and PHP in the first place :). diff --git a/lib/util.php b/lib/util.php --- a/lib/util.php +++ b/lib/util.php @@ -263,6 +263,7 @@ if (!function_exists("quoted_printable_e function quoted_printable_encode($string) { $string = str_replace(array('%20', '%0D%0A', '%'), array(' ', "\r\n", '='), rawurlencode($string)); $string = preg_replace('/[^\r\n]{73}[^=\r\n]{2}/', "$0=\r\n", $string); + $string = preg_replace('/=24SUBJECT/', '$SUBJECT', $string); return $string; } }