diff --git a/daemon.py b/daemon.py index 0ffb27640..fbb696eab 100644 --- a/daemon.py +++ b/daemon.py @@ -4239,9 +4239,9 @@ class PubServer(BaseHTTPRequestHandler): fields.get('passwordconfirm'): if len(fields['password']) > 2 and \ fields['password'] == fields['passwordconfirm']: - # set password - storeBasicCredentials(baseDir, nickname, - fields['password']) + # set password + storeBasicCredentials(baseDir, nickname, + fields['password']) # change city if fields.get('cityDropdown'): diff --git a/languages.py b/languages.py index c8e6ec21a..901704c6e 100644 --- a/languages.py +++ b/languages.py @@ -10,6 +10,7 @@ __module_group__ = "Core" import os import json from urllib import request, parse +from utils import removeHtml from utils import acctDir from utils import hasObjectDict from utils import getConfigParam @@ -195,6 +196,9 @@ def _libretranslate(url: str, text: str, else: url += "translate" + # LibreTranslate doesn't like markup + text = removeHtml(text) + ltParams = { "q": text, "source": source,