projects
/
squirrelmail.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add notes about issue reported where unset() breaks when removing attachments
[squirrelmail.git]
/
functions
/
mime.php
diff --git
a/functions/mime.php
b/functions/mime.php
index e6781752d284b618f5efac14ca0bf700aac1b96d..ca7f836c0affe9722c52f5b89ecc92b61eea8892 100644
(file)
--- a/
functions/mime.php
+++ b/
functions/mime.php
@@
-291,7
+291,8
@@
function translateText(&$body, $wrap_at, $charset) {
$body_ary = explode("\n", $body);
for ($i=0; $i < count($body_ary); $i++) {
- $line = $body_ary[$i];
+ $line = rtrim($body_ary[$i],"\r");
+
if (strlen($line) - 2 >= $wrap_at) {
sqWordWrap($line, $wrap_at, $charset);
}