forked from indymedia/epicyon
Even if other instances include arbitrary html within profile tags it isn't rendered within person options
parent
d3a7a2abf4
commit
8c3ecf2e94
|
@ -11,6 +11,7 @@ from shutil import copyfile
|
||||||
from petnames import getPetName
|
from petnames import getPetName
|
||||||
from person import isPersonSnoozed
|
from person import isPersonSnoozed
|
||||||
from posts import isModerator
|
from posts import isModerator
|
||||||
|
from utils import removeHtml
|
||||||
from utils import getDomainFromActor
|
from utils import getDomainFromActor
|
||||||
from utils import getNicknameFromActor
|
from utils import getNicknameFromActor
|
||||||
from blocking import isBlocked
|
from blocking import isBlocked
|
||||||
|
@ -113,35 +114,36 @@ def htmlPersonOptions(defaultTimeline: str,
|
||||||
optionsStr += \
|
optionsStr += \
|
||||||
'<p class="imText">' + translate['Email'] + \
|
'<p class="imText">' + translate['Email'] + \
|
||||||
': <a href="mailto:' + \
|
': <a href="mailto:' + \
|
||||||
emailAddress + '">' + emailAddress + '</a></p>\n'
|
emailAddress + '">' + removeHtml(emailAddress) + '</a></p>\n'
|
||||||
if xmppAddress:
|
if xmppAddress:
|
||||||
optionsStr += \
|
optionsStr += \
|
||||||
'<p class="imText">' + translate['XMPP'] + \
|
'<p class="imText">' + translate['XMPP'] + \
|
||||||
': <a href="xmpp:' + xmppAddress + '">' + \
|
': <a href="xmpp:' + removeHtml(xmppAddress) + '">' + \
|
||||||
xmppAddress + '</a></p>\n'
|
xmppAddress + '</a></p>\n'
|
||||||
if matrixAddress:
|
if matrixAddress:
|
||||||
optionsStr += \
|
optionsStr += \
|
||||||
'<p class="imText">' + translate['Matrix'] + ': ' + \
|
'<p class="imText">' + translate['Matrix'] + ': ' + \
|
||||||
matrixAddress + '</p>\n'
|
removeHtml(matrixAddress) + '</p>\n'
|
||||||
if ssbAddress:
|
if ssbAddress:
|
||||||
optionsStr += \
|
optionsStr += \
|
||||||
'<p class="imText">SSB: ' + ssbAddress + '</p>\n'
|
'<p class="imText">SSB: ' + removeHtml(ssbAddress) + '</p>\n'
|
||||||
if blogAddress:
|
if blogAddress:
|
||||||
optionsStr += \
|
optionsStr += \
|
||||||
'<p class="imText">Blog: <a href="' + blogAddress + '">' + \
|
'<p class="imText">Blog: <a href="' + \
|
||||||
blogAddress + '</a></p>\n'
|
removeHtml(blogAddress) + '">' + \
|
||||||
|
removeHtml(blogAddress) + '</a></p>\n'
|
||||||
if toxAddress:
|
if toxAddress:
|
||||||
optionsStr += \
|
optionsStr += \
|
||||||
'<p class="imText">Tox: ' + toxAddress + '</p>\n'
|
'<p class="imText">Tox: ' + removeHtml(toxAddress) + '</p>\n'
|
||||||
if jamiAddress:
|
if jamiAddress:
|
||||||
optionsStr += \
|
optionsStr += \
|
||||||
'<p class="imText">Jami: ' + jamiAddress + '</p>\n'
|
'<p class="imText">Jami: ' + removeHtml(jamiAddress) + '</p>\n'
|
||||||
if PGPfingerprint:
|
if PGPfingerprint:
|
||||||
optionsStr += '<p class="pgp">PGP: ' + \
|
optionsStr += '<p class="pgp">PGP: ' + \
|
||||||
PGPfingerprint.replace('\n', '<br>') + '</p>\n'
|
removeHtml(PGPfingerprint).replace('\n', '<br>') + '</p>\n'
|
||||||
if PGPpubKey:
|
if PGPpubKey:
|
||||||
optionsStr += '<p class="pgp">' + \
|
optionsStr += '<p class="pgp">' + \
|
||||||
PGPpubKey.replace('\n', '<br>') + '</p>\n'
|
removeHtml(PGPpubKey).replace('\n', '<br>') + '</p>\n'
|
||||||
optionsStr += ' <form method="POST" action="' + \
|
optionsStr += ' <form method="POST" action="' + \
|
||||||
originPathStr + '/personoptions">\n'
|
originPathStr + '/personoptions">\n'
|
||||||
optionsStr += ' <input type="hidden" name="pageNumber" value="' + \
|
optionsStr += ' <input type="hidden" name="pageNumber" value="' + \
|
||||||
|
|
Loading…
Reference in New Issue