[TikiWiki-commits] [Git][tikiwiki/tiki][master] [FIX] clear Cc/Bcc headers when mailer_redirect is enabled to avoid Symfony Email() type errors

"Olivier Kango \(@olivierkango\) via TikiWiki-cvs" <[email protected]>
Newsgroups gmane.comp.cms.tiki.cvs
Message-ID <69a01905cb774_3b191248980@gitlab-sidekiq-low-urgency-cpu-bound-v2-84674d4b7d-js2rh.mail>

Olivier Kango pushed to branch master at Tiki Wiki CMS Groupware / Tiki


Commits:
f308bf46 by Olivier Kango at 2026-02-26T11:49:26+02:00
[FIX] clear Cc/Bcc headers when mailer_redirect is enabled to avoid Symfony Email() type errors
---
* [FIX] clear Cc/Bcc headers when mailer_redirect is enabled to avoid Symfony Email() type errors

See merge request tikiwiki/tiki!9644

- - - - -


1 changed file:

- lib/mail/maillib.php


Changes:

=====================================
lib/mail/maillib.php
=====================================
@@ -224,8 +224,8 @@ function tiki_send_email($email)
 
     if (! empty($prefs['mailer_redirect'])) {
         $email->to($prefs['mailer_redirect']);
-        $email->cc([]);
-        $email->bcc([]);
+        $email->getHeaders()->remove('Cc');
+        $email->getHeaders()->remove('Bcc');
     }
 
     $envelope = null;



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

-- 
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/f308bf46beac64937711aaf0b1b3b03cdd0886fa
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.