XF\EmailBounce\Parser::getBounceTypeFromStatus does not handle statuses with multiple digits

DragonByte Tech

Well-known member
Affected version
2.3.7
Amazon SES will sometimes send a status such as 5.1.10, which will explicitly fail on this regex:
PHP:
if (!$statusCode || !preg_match('#^\d\.\d\.\d$#', $statusCode))

Suggested fix:
PHP:
if (!$statusCode || !preg_match('#^\d+\.\d+\.\d+$#', $statusCode))
 
Back
Top Bottom