Showing blocked user agents

main
Bob Mottram 2021-07-02 22:18:54 +01:00
parent cc6ce5ee2b
commit ffeaf52cc1
1 changed files with 4 additions and 2 deletions

View File

@ -1582,8 +1582,10 @@ def _htmlEditProfileFiltering(baseDir: str, nickname: str, domain: str,
allowedInstancesStr + '</textarea>\n'
userAgentsBlockedStr = ''
if userAgentsBlocked:
userAgentsBlockedStr = userAgentsBlocked.replace(',', '\n')
for ua in userAgentsBlocked:
if userAgentsBlockedStr:
userAgentsBlockedStr += '\n'
userAgentsBlockedStr += ua
editProfileForm += \
' <br><b><label class="labels">' + \
translate['Blocked User Agents'] + '</label></b>\n'