[TikiWiki-commits] [Git][tikiwiki/tiki][master] [FIX] Correctly handle References header in TikiMail class
"ushindi bienvenu \(@usbbush\) via TikiWiki-cvs" <[email protected]>
| Newsgroups | gmane.comp.cms.tiki.cvs |
|---|---|
| Message-ID | <6924aff69e6d6_2a17f778997ab@gitlab-sidekiq-low-urgency-cpu-bound-v2-67596b6dcc-ssflx.mail> |
ushindi bienvenu pushed to branch master at Tiki Wiki CMS Groupware / Tiki
Commits:
7835d0f8 by UshindiG at 2025-11-24T19:12:02+00:00
[FIX] Correctly handle References header in TikiMail class
---
* [FIX] Correctly handle References header in TikiMail class
See merge request tikiwiki/tiki!9094
- - - - -
1 changed file:
- lib/webmail/tikimaillib.php
Changes:
=====================================
lib/webmail/tikimaillib.php
=====================================
@@ -133,15 +133,18 @@ class TikiMail
public function setHeader($name, $value)
{
$headers = $this->mail->getHeaders();
+ if (is_string($value)) {
+ $value = explode(',', trim($value));
+ }
switch ($name) {
case 'Message-Id':
- $headers->addIdHeader('Message-ID', trim($value));
+ $headers->addIdHeader('Message-ID', $value);
break;
case 'In-Reply-To':
- $headers->addIdHeader('In-Reply-To', trim($value));
+ $headers->addIdHeader('In-Reply-To', $value);
break;
case 'References':
- $headers->addIdHeader('References: ', trim($value));
+ $headers->addIdHeader('References', $value);
break;
default:
$headers->addTextHeader($name, $value);
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/7835d0f8d67241924976601411f8a08334490da8
--
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/7835d0f8d67241924976601411f8a08334490da8
You're receiving this email because of your account on gitlab.com.
_______________________________________________
TikiWiki-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-cvs