From 8c3ecf2e94b6a067e6e658d2619844e647715c25 Mon Sep 17 00:00:00 2001
From: Bob Mottram
Date: Sat, 12 Dec 2020 15:36:44 +0000
Subject: [PATCH] Even if other instances include arbitrary html within profile
tags it isn't rendered within person options
---
webapp_person_options.py | 22 ++++++++++++----------
1 file changed, 12 insertions(+), 10 deletions(-)
diff --git a/webapp_person_options.py b/webapp_person_options.py
index 89e142d03..aa60ed3e1 100644
--- a/webapp_person_options.py
+++ b/webapp_person_options.py
@@ -11,6 +11,7 @@ from shutil import copyfile
from petnames import getPetName
from person import isPersonSnoozed
from posts import isModerator
+from utils import removeHtml
from utils import getDomainFromActor
from utils import getNicknameFromActor
from blocking import isBlocked
@@ -113,35 +114,36 @@ def htmlPersonOptions(defaultTimeline: str,
optionsStr += \
'' + translate['Email'] + \
': ' + emailAddress + '
\n'
+ emailAddress + '">' + removeHtml(emailAddress) + '
\n'
if xmppAddress:
optionsStr += \
'' + translate['XMPP'] + \
- ': ' + \
+ ': ' + \
xmppAddress + '
\n'
if matrixAddress:
optionsStr += \
'' + translate['Matrix'] + ': ' + \
- matrixAddress + '
\n'
+ removeHtml(matrixAddress) + '\n'
if ssbAddress:
optionsStr += \
- 'SSB: ' + ssbAddress + '
\n'
+ 'SSB: ' + removeHtml(ssbAddress) + '
\n'
if blogAddress:
optionsStr += \
- 'Blog: ' + \
- blogAddress + '
\n'
+ 'Blog: ' + \
+ removeHtml(blogAddress) + '
\n'
if toxAddress:
optionsStr += \
- 'Tox: ' + toxAddress + '
\n'
+ 'Tox: ' + removeHtml(toxAddress) + '
\n'
if jamiAddress:
optionsStr += \
- 'Jami: ' + jamiAddress + '
\n'
+ 'Jami: ' + removeHtml(jamiAddress) + '
\n'
if PGPfingerprint:
optionsStr += 'PGP: ' + \
- PGPfingerprint.replace('\n', '
') + '
\n'
+ removeHtml(PGPfingerprint).replace('\n', '
') + '\n'
if PGPpubKey:
optionsStr += '' + \
- PGPpubKey.replace('\n', '
') + '
\n'
+ removeHtml(PGPpubKey).replace('\n', '
') + '\n'
optionsStr += '