Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
While setting up a email, i had the subject of the email set a multi token string. This resulted in using the default value. Sample String value:
[webform_submission:user] - [webform_submission:values:site:raw] - [webform_submission:values:issue_summary]
The mapping logic detected this string to match the site
field despite expecting the raw value of the token replaced string.
Proposed resolution
Pin the regex to the start and end of the string.
Comment | File | Size | Author |
---|---|---|---|
#2 | 2934723-2-regex-in-email-handler-matches.patch | 743 bytes | richgerdes |
|
Comments
Comment #2
richgerdesAttached file addeds "^" and "$" to regex so it only matches exact tokens, not tokens in strings.
Comment #4
jrockowitz CreditAttribution: jrockowitz as a volunteer and at The Big Blue House commentedThanks