[support_mailcmd] incoming emails can contain '\r\n' or '\r' instead of '\n' for newlines which causes problems

Created on 26 March 2013, over 11 years ago
Updated 29 March 2023, over 1 year ago

support_mailcmd_support_fetch_message_alter() explodes message body using '\n' but messages can contain '\r\n' or '\r' instead for new lines. This can causes the regex match to look like 'variable\r' or make the function fail in identifying variables which can cause problems. Just need to replace '\r\n' and '\r' with '\n' before exploding.

πŸ› Bug report
Status

Closed: outdated

Version

1.0

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024