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

Split friendly admin email #298

Merged
merged 3 commits into from
Feb 12, 2024
Merged

Split friendly admin email #298

merged 3 commits into from
Feb 12, 2024

Conversation

fritzmg
Copy link
Collaborator

@fritzmg fritzmg commented Feb 7, 2024

If a notification is sent in a context without a request, or without FrontendIndex being rendered, $GLOBALS['TL_ADMIN_EMAIL'] will be empty. In such a case the notification center currently falls back to Config::get('adminEmail') - however, this config might contain 'friendly' email addresses such as

Lorem Ipsum <[email protected]>
Lorem Ipsum [[email protected]]

This would then be used directly for $this->objLanguage->email_sender_address, resulting in an invalid sender address.

This PR fixes that by splitting the friendly email address.

@fritzmg fritzmg added the bug label Feb 7, 2024
@fritzmg fritzmg self-assigned this Feb 7, 2024
@aschempp aschempp merged commit 67c0c56 into main Feb 12, 2024
@aschempp aschempp deleted the split-friendly-admin-email branch February 12, 2024 09:16
@aschempp
Copy link
Member

Thank you @fritzmg

@fritzmg
Copy link
Collaborator Author

fritzmg commented Feb 28, 2024

Can I tag this for a 1.7.9 release?

@aschempp
Copy link
Member

It is already published in 1.7.7 and 1.7.8

@fritzmg
Copy link
Collaborator Author

fritzmg commented Feb 29, 2024

Oh weird, nvm then. For some reason the tag is not visible in the merged commit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants