From 762a699dc7a5d0e3971a4679f714b7fa8d8832cf Mon Sep 17 00:00:00 2001
From: thomascube <thomas@roundcube.net>
Date: Fri, 01 May 2009 13:58:12 -0400
Subject: [PATCH] Hard-wrap message headers according to RFC
---
program/include/rcube_mail_mime.php | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/program/include/rcube_mail_mime.php b/program/include/rcube_mail_mime.php
index f59354f..ab93d3a 100644
--- a/program/include/rcube_mail_mime.php
+++ b/program/include/rcube_mail_mime.php
@@ -180,7 +180,7 @@
}
}
- $input[$hdr_name] = $hdr_value;
+ $input[$hdr_name] = wordwrap($hdr_value, 990, "\n", true); // hard limit header length
}
return $input;
--
Gitblit v1.9.1