-
-
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
dev/mail/15 deal better with spaces in from email address #12346
Conversation
(Standard links)
|
6523837
to
c65ce89
Compare
@michaelmcandrew a) thank you very much & b)regex changes are scary - can we spin the regex into it's own function & add a test that iterates through a few strings? |
Also @michaelmcandrew should we go through the databases and run this in an upgrade as well? |
eb332e9
to
2eb1a7d
Compare
@eileenmcnaughton - I've extracted it to a function and added a unit test. @seamuslee001 - I don't think it is worth the risk of introducing a bug to the upgrade script since
|
@michaelmcandrew test fail relates PHP Fatal error: Call to protected method CRM_Admin_Form_Options::sanitizeFromEmailAddress() from context 'CRM_Core_OptionGroupTest' in /home/jenkins/buildkit/build/core-12346- @michaelmcandrew @seamuslee001 I agree that it is probably enough to fix going forwards. Probably anyone experiencing this error has already been hurt & self-fixed it. We could add a system check but I'm not convinced it's worth the effort. We could also do a str_replace double space for single when actually sending - it might still not be a priority to do that though |
@michaelmcandrew next rc gets cut on Wed - would be nice to get this merged since it seems stuck on something trivial |
2eb1a7d
to
ccbfdc7
Compare
Jenkins re test this please |
Change seems fine to myself and Eileen adding merge on pass thanks @michaelmcandrew |
Merging as per the tag |
see https://lab.civicrm.org/dev/mail/issues/15