summaryrefslogtreecommitdiff
path: root/inc/mail.php
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2010-06-26 18:27:16 +0200
committerAndreas Gohr <andi@splitbrain.org>2010-06-26 18:28:37 +0200
commit2ae68f97446ff6bae5fbbe463eb00312598be840 (patch)
treebcefcfdb7839649787d4f72ff5901ab692b156f3 /inc/mail.php
parent3f803e5e8df5f91507a14467a07e89271f9e4e8e (diff)
downloadrpg-2ae68f97446ff6bae5fbbe463eb00312598be840.tar.gz
rpg-2ae68f97446ff6bae5fbbe463eb00312598be840.tar.bz2
use CRLF in quoted printable encoding FS#1755
Needs testing from: a) Exchange users - is FS1755 fixed for you? b) everone else - all okay still?
Diffstat (limited to 'inc/mail.php')
-rw-r--r--inc/mail.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/inc/mail.php b/inc/mail.php
index 6d1652fc0..38232d110 100644
--- a/inc/mail.php
+++ b/inc/mail.php
@@ -11,6 +11,7 @@ if(!defined('DOKU_INC')) die('meh.');
// end of line for mail lines - RFC822 says CRLF but postfix (and other MTAs?)
// think different
if(!defined('MAILHEADER_EOL')) define('MAILHEADER_EOL',"\n");
+if(!defined('QUOTEDPRINTABLE_EOL')) define('QUOTEDPRINTABLE_EOL',"\015\012");
#define('MAILHEADER_ASCIIONLY',1);
/**
@@ -254,11 +255,11 @@ function mail_quotedprintable_encode($sText,$maxlen=74,$bEmulate_imap_8bit=true)
// but this wouldn't be caught by such an easy RegExp
if($maxlen){
preg_match_all( '/.{1,'.($maxlen - 2).'}([^=]{0,2})?/', $sLine, $aMatch );
- $sLine = implode( '=' . MAILHEADER_EOL, $aMatch[0] ); // add soft crlf's
+ $sLine = implode( '=' . QUOTEDPRINTABLE_EOL, $aMatch[0] ); // add soft crlf's
}
}
// join lines into text
- return implode(MAILHEADER_EOL,$aLines);
+ return implode(QUOTEDPRINTABLE_EOL,$aLines);
}