Skip to content

Commit

Permalink
Fix bug where trailing non-ascii characters in email addresses could …
Browse files Browse the repository at this point in the history
…have been removed in recipient input (#9257)
  • Loading branch information
alecpl committed Dec 15, 2023
1 parent 6ad98e7 commit 479ad3b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
- Fix saving other encryption settings besides enigma's (#9240)
- Fix unneeded php command use in installto.sh and deluser.sh scripts (#9237)
- Fix TinyMCE localization installation (#9266)
- Fix bug where trailing non-ascii characters in email addresses could have been removed in recipient input (#9257)

## Release 1.6.5

Expand Down
3 changes: 1 addition & 2 deletions skins/elastic/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,7 @@ or after installing it on the destination system.
FOR DEVELOPERS
--------------

- Supported browsers: IE11+, Edge, Last 2 versions for Chrome/Firefox/Safari,
Android Browser 5+, iOS Safari 9+.
- Supported browsers: Last 2 versions of Edge/Chrome/Firefox/Safari.

- Skin color palette changes and other css modifications can be done
via _styles.less and _variables.less files. Where you can overwrite all
Expand Down
2 changes: 1 addition & 1 deletion skins/elastic/ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -3497,7 +3497,7 @@ function rcube_elastic_ui()
recipients.push({
name: '',
email: email.replace(/(^<|>$)/g, '') // trim < and > characters
.replace(/[^a-z]$/gi, '') // remove trailing comma or any non-letter character at the end (#7899)
.replace(/[^\p{L}]$/giu, '') // remove trailing comma or any non-letter character at the end (#7899, #9257)
});

str = str.replace(email, '').trim();
Expand Down

0 comments on commit 479ad3b

Please sign in to comment.