Reply-To Regex incorrect
-
it looks like you added support for the Reply-To header due to the thread: https://www.ads-software.com/support/topic/reply-to-header
However, with the current regex statement it cuts off any domain which has more than one period.
Example [email protected] would be sent with a Reply-To header of [email protected]
This is reeking havoc on my support system.
Example of current regex: https://www.phpliveregex.com/p/cst
I would suggest changing the regex to
/^Reply\-To:(.*)/mi
which I got from https://mailheader.mattiasgeniar.be/headers.php
Example with updated regex: https://www.phpliveregex.com/p/csu
After looking more at the code, it’s the same regex you’re using for the “From:” header 4 lines below, I’m not sure why you chose to go with such a limiting regex pattern. You would even have trouble with [email protected]
- The topic ‘Reply-To Regex incorrect’ is closed to new replies.