From dbef1acd9520dee6c8ee71d7d0f0dd2129cba068 Mon Sep 17 00:00:00 2001 From: David Rothstein Date: Mon, 1 Feb 2016 18:37:58 -0500 Subject: Issue #1946090 by pjonckiere, alex-mo, rpayanm: _drupal_wrap_mail_line() does not force-wrap too long words after 996 characters --- includes/mail.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'includes/mail.inc') diff --git a/includes/mail.inc b/includes/mail.inc index 0275922be..0e5c17804 100644 --- a/includes/mail.inc +++ b/includes/mail.inc @@ -566,7 +566,7 @@ function _drupal_wrap_mail_line(&$line, $key, $values) { // Use soft-breaks only for purely quoted or unindented text. $line = wordwrap($line, 77 - $values['length'], $values['soft'] ? " \n" : "\n"); // Break really long words at the maximum width allowed. - $line = wordwrap($line, 996 - $values['length'], $values['soft'] ? " \n" : "\n"); + $line = wordwrap($line, 996 - $values['length'], $values['soft'] ? " \n" : "\n", TRUE); } /** -- cgit v1.2.3