From 031add49ee40a79a5446dc4dde56565ec9eb9006 Mon Sep 17 00:00:00 2001 From: Florent Azavant Date: Mon, 18 Nov 2024 12:33:16 +0100 Subject: [PATCH] TF-3189 added a comment in `mail_address.dart` --- core/lib/utils/mail/mail_address.dart | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/lib/utils/mail/mail_address.dart b/core/lib/utils/mail/mail_address.dart index ad2b1f4db7..276b701755 100644 --- a/core/lib/utils/mail/mail_address.dart +++ b/core/lib/utils/mail/mail_address.dart @@ -166,6 +166,8 @@ class MailAddress with EquatableMixin { } String strictUrlEncode(String input) { + // cannot use Uri.encodeComponent because it is meant to be compliant with RFC2396 + // eg `-_.!~*'()` are not encoded (but we want them to) final StringBuffer encoded = StringBuffer(); for (int codeUnit in utf8.encode(input)) {