Browse Source

Fix bug where trailing non-ascii characters in email addresses could have been removed in recipient input (#9257)

pull/9518/head
Aleksander Machniak 2 years ago
parent
commit
371b285389
  1. 1
      CHANGELOG.md
  2. 3
      skins/elastic/README.md
  3. 2
      skins/elastic/ui.js

1
CHANGELOG.md

@ -10,6 +10,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

3
skins/elastic/README.md

@ -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

2
skins/elastic/ui.js

@ -3413,7 +3413,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();

Loading…
Cancel
Save