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

Added code to unsanitize user email on update #19698

Merged
merged 1 commit into from Sep 1, 2022

Conversation

AltamashShaikh
Copy link
Contributor

@AltamashShaikh AltamashShaikh commented Sep 1, 2022

Description:

Added code to unsanitize user email input on update.
Fixes: matomo-org/plugin-LoginLdap#293

Review

@AltamashShaikh AltamashShaikh added the Needs Review PRs that need a code review label Sep 1, 2022
Copy link
Member

@sgiehl sgiehl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. Had some thoughts if it might be useful to have some additional tests for that. But actually the change won't have any effect on Matomo core itself, as Matomo doesn't allow creating users having an email containing a special char.
Also as we most likely will start working on removing the auto-sanitizing stuff in the new future and maybe also on supporting email with special chars, there will be new changes coming, where adding tests might be required nevertheless.

@sgiehl sgiehl merged commit 1198bdc into 4.x-dev Sep 1, 2022
@sgiehl sgiehl deleted the unsanitise-email-on-update-user branch September 1, 2022 11:40
@sgiehl sgiehl added this to the 4.12.0 milestone Sep 1, 2022
@sgiehl sgiehl added not-in-changelog For issues or pull requests that should not be included in our release changelog on matomo.org. and removed Needs Review PRs that need a code review labels Sep 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
not-in-changelog For issues or pull requests that should not be included in our release changelog on matomo.org.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Special Characters in email or name/alias cause login to fail
2 participants