Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 291491

_drupal_wrap_mail_line() does not what it is supposed to do

$
0
0

The line 566 wants to conform with the RFC 2822 in not allowing any lines being longer than 998 characters -- but fails.

There should be a TRUE as last paramter of wordwrap() for really breaking at 996 chars (see http://www.php.net/manual/en/function.wordwrap.php).

Therefore

<?php
// Break really long words at the maximum width allowed.
$line = wordwrap($line, 996 - $values['length'], $values['soft'] ? " \n": "\n");
?>

should become

<?php
// Break really long words at the maximum width allowed.
$line = wordwrap($line, 996 - $values['length'], $values['soft'] ? " \n": "\n", TRUE);
?>

Patch attached.

Cheers, Alex

AttachmentSizeStatusTest resultOperations
d7-mail-wordwrap.patch602 bytesIgnored: Check issue status.NoneNone

Viewing all articles
Browse latest Browse all 291491

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>