From 95d39beb18fe1ccdab16fc19424f8b7c020d9a44 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Wed, 16 Feb 2022 11:29:40 +0000 Subject: [PATCH] Remove any html from name in vcard --- pgp.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pgp.py b/pgp.py index 1712e611e..ff6ef04fd 100644 --- a/pgp.py +++ b/pgp.py @@ -636,7 +636,7 @@ def actor_to_vcard(actor: {}) -> str: vcard_str = 'BEGIN:VCARD\n' vcard_str += 'VERSION:4.0\n' vcard_str += 'REV:' + actor['published'] + '\n' - vcard_str += 'FN:' + actor['name'] + '\n' + vcard_str += 'FN:' + remove_html(actor['name']) + '\n' vcard_str += 'NICKNAME:' + actor['preferredUsername'] + '\n' vcard_str += 'URL:' + actor['url'] + '\n' blog_address = get_blog_address(actor) @@ -690,7 +690,8 @@ def actor_to_vcard_xml(actor: {}) -> str: vcard_str = '\n' vcard_str += '\n' vcard_str += ' \n' - vcard_str += ' ' + actor['name'] + '\n' + vcard_str += ' ' + \ + remove_html(actor['name']) + '\n' vcard_str += ' ' + \ actor['preferredUsername'] + '\n' vcard_str += ' ' + \