KD2 Framework  Check-in [6f8ccd9966]

Overview
Comment:Mail_Message: fix quoted printable for message body for text/plain emails
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | 7.3 | stable
Files: files | file ages | folders
SHA1: 6f8ccd99664991798c1fe32c14c8ccb5b77a7617
User & Date: bohwaz on 2022-06-12 20:55:35
Other Links: branch diff | manifest | tags
Context
2022-06-29
17:50
Image: Try to fix animated GIF resize check-in: e231de24b0 user: bohwaz tags: 7.3
2022-06-12
20:55
Mail_Message: fix quoted printable for message body for text/plain emails check-in: 6f8ccd9966 user: bohwaz tags: 7.3, stable
15:50
Change input size for datepicker check-in: 690f1b200b user: bohwaz tags: 7.3
Changes

Modified src/lib/KD2/Mail_Message.php from [aff51bb933] to [da4007fcb8].

523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539

	public function outputBody()
	{
		$parts = array_values($this->parts);

		if (count($parts) <= 1)
		{
			$cte = $this->getHeader('content-transfer-encoding') ?? '';

			if (stristr($cte, 'quoted-printable'))
			{
				$body = quoted_printable_encode($parts[0]['content']);
			}
			elseif (stristr($cte, 'base64'))
			{
				$body = chunk_split(base64_encode($parts[0]['content']));
			}







|

|







523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539

	public function outputBody()
	{
		$parts = array_values($this->parts);

		if (count($parts) <= 1)
		{
			$cte = $this->getHeader('content-transfer-encoding');

			if (null === $cte || stristr($cte, 'quoted-printable'))
			{
				$body = quoted_printable_encode($parts[0]['content']);
			}
			elseif (stristr($cte, 'base64'))
			{
				$body = chunk_split(base64_encode($parts[0]['content']));
			}