Skip to content

Comments

[FIX] Emails being sent with HTML entities getting escaped multiple times#21994

Merged
sampaiodiego merged 2 commits intoRocketChat:developfrom
bhavayAnand9:FIX_21986_PASSWORD_ESCAPE
May 21, 2021
Merged

[FIX] Emails being sent with HTML entities getting escaped multiple times#21994
sampaiodiego merged 2 commits intoRocketChat:developfrom
bhavayAnand9:FIX_21986_PASSWORD_ESCAPE

Conversation

@bhavayAnand9
Copy link
Contributor

@bhavayAnand9 bhavayAnand9 commented May 8, 2021

Proposed changes (including videos or screenshots)

fixes an issue where if password contains special HTML character like &, in the email it would end up something like &

password was going through multiple escapeHTML function calls
secure&123 => secure&123 => secure&123

Issue(s)

Closes #21986

Steps to test or reproduce

edit user from admin panel
enable the option "Set random password and send by email"
check your email or see logs for email html

Further comments

@strike65
Copy link

Hi!
Thank you for the bug fix.
When will the fix be integrated into the release? The fixed bug is severe and should be released quickly.

@sampaiodiego sampaiodiego changed the title [FIX] Fix an issue where special html entities were getting escaped multiple times. [FIX] Emails being sent with HTML entities getting escaped multiple times May 21, 2021
@sampaiodiego sampaiodiego merged commit f1a500a into RocketChat:develop May 21, 2021
@sampaiodiego sampaiodiego mentioned this pull request May 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Generated user passwords are translated incorrectly in the sent email.

4 participants