Skip to content
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

dev/core#2898 - Add handling to token processor for double http in url tokens #25078

Merged
merged 1 commit into from
Dec 2, 2022

Conversation

eileenmcnaughton
Copy link
Contributor

@eileenmcnaughton eileenmcnaughton commented Nov 29, 2022

Overview

Add handling to token processor for double http in url tokens

Before

If a user uses ckeditor to create text they are likely to create a string like

https://{contact.website_first.url}

which renders to

https://https://example.com

After

A new tidy class fixes this specific string

Technical Details

This was the last thing that Flexmailer did that the old BAO class didn't - with this done we can make flexmailer compulsory and remove the legacy code.

Comments

I tried to keep this really simple & avoid getting drawn into to anything that would result in 'clever code' - partly cos I'm feeling a bit of code-magic ptsd at the moment - but also because this feature that someone probably spend an hour adding to the BAO mailer has already cost us probably weeks or time & delayed flexmailer substantially so I just want to keep it simple, get it wrapped up,

@civibot
Copy link

civibot bot commented Nov 29, 2022

(Standard links)

@civibot civibot bot added the master label Nov 29, 2022
@eileenmcnaughton eileenmcnaughton force-pushed the token_tidy branch 2 times, most recently from 2c0a2f7 to 1975025 Compare November 29, 2022 06:41
@eileenmcnaughton
Copy link
Contributor Author

test this please

@totten
Copy link
Member

totten commented Dec 2, 2022

I just want to keep it simple

👍 I agree, this implementation looks pretty straight to me. Test-coverage is good. I did some r-run (comparing my local, which has the problem -- against the autobuild site, where it's fixed), and that looked good too

Merging!

@totten totten merged commit f4dbd9f into civicrm:master Dec 2, 2022
@totten totten deleted the token_tidy branch December 2, 2022 23:29
@totten totten changed the title Add handling to token processor for double http in url tokens dev/core#2898 - Add handling to token processor for double http in url tokens Dec 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants