[balsa] Ensure utf8-clean crypto key uid
- From: Albrecht Dreß <albrecht src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [balsa] Ensure utf8-clean crypto key uid
- Date: Thu, 9 Jul 2020 16:47:57 +0000 (UTC)
commit 55af8c065c9be814e77d5276712b3d1ab5b1d1b2
Author: Albrecht Dreß <albrecht dress arcor de>
Date: Thu Jul 9 18:44:37 2020 +0200
Ensure utf8-clean crypto key uid
- libbalsa/gmime-gpgme-signature.c, tokenize_subject(): ensure all
returned components of GnuPG key uid or x509 subject string are
utf8-clean
Signed-off-by: Albrecht Dreß <albrecht dress arcor de>
libbalsa/gmime-gpgme-signature.c | 4 ++++
1 file changed, 4 insertions(+)
---
diff --git a/libbalsa/gmime-gpgme-signature.c b/libbalsa/gmime-gpgme-signature.c
index cc44ada12..8945ababa 100644
--- a/libbalsa/gmime-gpgme-signature.c
+++ b/libbalsa/gmime-gpgme-signature.c
@@ -406,6 +406,10 @@ tokenize_subject(const gchar *subject,
}
libbalsa_utf8_sanitize(&result[n + 1], TRUE, NULL);
}
+
+ if ((result[n] != NULL) && (result[n + 1] == NULL)) {
+ libbalsa_utf8_sanitize(&result[n], TRUE, NULL);
+ }
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]