Fixed XF\Mail\Mail incorrect string length handling

Xon

Well-known member
Affected version
2.1.0 Patch 2
XF\Mail\Mail::setContent will fail when handling the string 0 due to simple $htmlBody/!$htmlBody checks instead of using strlen.

These arguments should also be converted from stringable objects to string as well before doing length checks
 
Thank you for reporting this issue, it has now been resolved. We are aiming to include any changes that have been made in a future XF release (2.2.0 Beta 3).

Change log:
Appropriately handle text/body strings passed into Mail::setContent when length checking.
There may be a delay before changes are rolled out to the XenForo Community.
 
Back
Top Bottom