-
-
Notifications
You must be signed in to change notification settings - Fork 825
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Flexmailer: Prevent broken urls containing hyphens when click tracking is enabled for plain text mailings #25149
Flexmailer: Prevent broken urls containing hyphens when click tracking is enabled for plain text mailings #25149
Conversation
(Standard links)
|
Looks pretty sensible to me. |
@larssandergreen would it be possible for you to add another case into here https://github.com/civicrm/civicrm-core/blob/master/ext/flexmailer/tests/phpunit/Civi/FlexMailer/ClickTracker/TextClickTrackerTest.php#L67 which covers the - to lock in this behaviour |
@larssandergreen I think we should target this patch against the 5.57 rc since we make flexmailer compulsory in that release |
de6ee77
to
ee55b52
Compare
ee55b52
to
8b13a9f
Compare
Test looks good. To my eye, the current branch is based |
@larssandergreen @totten merging this. Thanks! |
Thanks all!
…On Mon, Dec 12, 2022 at 9:55 PM Yashodha Chaku ***@***.***> wrote:
Merged #25149 <#25149> into
5.57.
—
Reply to this email directly, view it on GitHub
<#25149 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AGCV35DW3UDISZTZOC6HX3TWM76VNANCNFSM6AAAAAASZ2O2CU>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Given we are making flexmailer required I have put up a port-to-stable for this #25166 |
Overview
Hyphens are allowed in URLs, but the regex for plain text mailings in Flexmailer did not include hyphens. URLs of the form
example.org/wp-content/something
were stored for click tracking asexample.org/wp
, breaking them.Before
Hyphens not included in regex.
After
Hyphens included.