[TikiWiki-commits] [Git][tikiwiki/tiki][30.x] [FIX] mail: Function `addTextHeader` unsurprisingly requires a text string as the value.

"Jonny Bradley \(@jonnybradley\) via TikiWiki-cvs" <[email protected]>
Newsgroups gmane.comp.cms.tiki.cvs
Message-ID <69fa1d5188dc1_381900b442137@gitlab-sidekiq-low-urgency-cpu-bound-v2-9f5df478c-2bc85.mail>

Jonny Bradley pushed to branch 30.x at Tiki Wiki CMS Groupware / Tiki


Commits:
c2b903b2 by Jonny Bradley at 2026-05-05T16:39:43+00:00
[FIX] mail: Function `addTextHeader` unsurprisingly requires a text string as the value.
---
* [FIX] mail: Function `addTextHeader` unsurprisingly requires a text string as the value.
!9094 converted all header values to an array which results in fatal errors (for instance on tiki-remind_password.php, thanks @bsfez)

See merge request tikiwiki/tiki!10144


(cherry picked from commit f750361a64699aad84926383bdb8be30b740a5cd)

6058fd37 [FIX] mail: Function `addTextHeader` unsurprisingly requires a text string as the value.

Co-authored-by: Jonny Bradley <[email protected]>
- - - - -


1 changed file:

- lib/webmail/tikimaillib.php


Changes:

=====================================
lib/webmail/tikimaillib.php
=====================================
@@ -147,7 +147,7 @@ class TikiMail
                 $headers->addIdHeader('References', $value);
                 break;
             default:
-                $headers->addTextHeader($name, $value);
+                $headers->addTextHeader($name, implode(',', $value));
                 break;
         }
     }



View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/c2b903b2e0b9e9d9347989a3ffedbbf3a790050f

-- 
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/c2b903b2e0b9e9d9347989a3ffedbbf3a790050f
You're receiving this email because of your account on gitlab.com. Manage all notifications: https://gitlab.com/-/profile/notifications | Help: https://gitlab.com/help

_______________________________________________
TikiWiki-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-cvs
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.