- 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