Comments (3)
Looks like it was supposed to address some specific 3rd party problems:
Line 38 in d84d4df
Possibly related: php/php-src#8086
from mybb.
If we refer to the PHP Mail() function description it seem preferable to use an Array for data transfer instead of not knowing if it is a CRLF or a LF that should be used in the user hosting environment?
Hoping that PHP would format the mail properly with the Array...
(PHP 4, PHP 5, PHP 7, PHP 8)
mail — Send mail
Description
mail(
string $to,
string $subject,
string $message,
array|string $additional_headers = [],
string $additional_params = ""
): booladditional_headers (optional)
String or array to be inserted at the end of the email header. This is typically used to add extra headers (From, Cc, and Bcc). Multiple extra headers should be separated with a CRLF (\r\n). If outside data are used to compose this header, the data should be sanitized so that no unwanted headers could be injected. If an array is passed, its keys are the header names and its values are the respective header values. ... ... Note: If messages are not received, try using a LF (\n) only. Some Unix mail transfer agents (most notably » qmail) replace LF by CRLF automatically (which leads to doubling CR if CRLF is used). This should be a last resort, as it does not comply with » RFC 2822.
from mybb.
Yes, one solution may be to split the final string with the used delimiter to pass an array on PHP >= 7.2.0 (when array
became an accepted type for the parameter).
from mybb.
Related Issues (20)
- Warnings on newreply or newthread for guests writing in preview mode
- Security Log does not add the proper seed for admin permissions
- Security Log SQL error for nonexistent accounts during ACP login
- Support independent upgrades in legacy series HOT 2
- Add 1.9.0 upgrade script HOT 2
- ActivityPub Support
- ACP Issues
- ACP error in absence settings (/admin/modules/user/users.php)
- PHP 8 warnings - Undefined array key - when previewing post as guest
- Use local fonts in ACP
- Use local assets in Base Theme
- PHP 8 Warnings in templates#dev_get and pluginSystem#run_hooks
- Add contact fields as custom profile fields HOT 3
- Redundant if checks in member profile
- PHP 8 Warning in editpost.php: undefined variable $icon
- MySQL - 'groups' is a reserved keyword HOT 3
- Warning [2] Undefined variable $attach_add_options - Line: 715 - File: editpost.php PHP 8.2.11 (Linux)
- Data too long for column 'username'
- Uninitialized string offset 0 in inc/db_mysql_pdo.php
- function forum_permissions Bug HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mybb.