Skip to content

A free open source IT asset/license management system

Updated comment

snipe3f153851332d
diff --git a/app/Listeners/ForceBase64MailEncoding.php b/app/Listeners/ForceBase64MailEncoding.php
index 250550dcc6..c56448ccda 100644
--- a/app/Listeners/ForceBase64MailEncoding.php
+++ b/app/Listeners/ForceBase64MailEncoding.php
@@ -9,12 +9,14 @@ use Symfony\Component\Mime\Part\DataPart;
use Symfony\Component\Mime\Part\TextPart;
/*
- * Why base64 and not QP: quoted-printable soft-wraps at col 76 end up inside long
- * markdown-table URLs (issue #19998). A compliant MTA strips "=\n" per
- * RFC 2045 §6.7, but some intermediates (SafeLinks, older Exchange)
- * rewrite that soft-break into a literal "." or similar joining
- * char, producing user-visible double-dots in wrapped links. Base64 has no
- * soft-wrap at all so the URL stays normal no matter what downstream mangling happens.
+ * Quoted-printable soft-wraps at col 76 end up inside long
+ * markdown-table URLs (issue #19998).
+ *
+ * A compliant MTA strips "=\n" per RFC 2045 §6.7, but some intermediates
+ * (SafeLinks, older Exchange) rewrite that soft-break into a literal "." or similar joining
+ * char, producing user-visible double-dots in wrapped links that end up breaking links.
+ * Base64 has no soft-wrap at all so the URL stays normal no matter
+ * what downstream mangling happens.
*/
class ForceBase64MailEncoding
{
@@ -48,7 +50,7 @@ class ForceBase64MailEncoding
// already-constructed part without rebuilding the whole MIME tree
// (which would otherwise require re-doing CID replacement, inline
// image detection, and nested Multipart/Alternative/Related/Mixed
- // bookkeeping that Symfony's Email::generateBody() does for us).
+ // stuff that Symfony's Email::generateBody() does for us).
$reflection = new \ReflectionProperty(TextPart::class, 'encoding');
$reflection->setValue($part, 'base64');
}