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

Improve email #7

Merged
merged 4 commits into from
Jul 13, 2023
Merged

Improve email #7

merged 4 commits into from
Jul 13, 2023

Conversation

dunxd
Copy link

@dunxd dunxd commented Jul 13, 2023

Limit sending to a single email address which must be valid. (Previously the code exploded a list of email addresses delimited with ;, however the cookie extraction code didn't allow that character, and there really is no good reason to allow sending to more than one address in one step.

Fix bug that prevented configured email address from being displayed on customisation page.

Fix getCurrentOption() so it can get email addresses - previous regex did not allow it. There may be better options using filter_var().
Limit to sending to 5 addresses.  Note that the cookie extraction doesn't allow the ; delimiter, so this is to prevent mischief.

Check that email addresses are valid using PHP built in function filter_var().
Limit sending to a single email address, which must be valid.
@mikespub mikespub merged commit b23b8df into mikespub-org:main Jul 13, 2023
@mikespub
Copy link
Member

Thanks @dunxd - seems like the feature branch approach worked well for you, as I updated the main branch in parallel :-)

@mikespub mikespub added the backend About COPS backend (PHP code) label Aug 8, 2023
@dunxd dunxd deleted the fix-email-issues branch September 19, 2023 13:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend About COPS backend (PHP code)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants