Fixed an issue where server names with special characters are not displayed correctly in the process tab. Fixes #7695

This commit is contained in:
Aditya Toshniwal
2022-09-15 16:43:37 +05:30
committed by Akshay Joshi
parent 769f58970e
commit 04b1e26041
9 changed files with 10 additions and 22 deletions

View File

@@ -923,7 +923,7 @@ def signal_runtime():
if hasattr(config, 'SECURITY_CHANGEABLE') and config.SECURITY_CHANGEABLE:
@blueprint.route("/change_password", endpoint="change_password",
methods=['POST'])
methods=['GET', 'POST'])
@pgCSRFProtect.exempt
@login_required
def change_password():
@@ -1011,7 +1011,7 @@ if hasattr(config, 'SECURITY_RECOVERABLE') and config.SECURITY_RECOVERABLE:
user=user, token=token)
@blueprint.route("/reset_password", endpoint="forgot_password",
methods=['POST'])
methods=['GET', 'POST'])
@pgCSRFProtect.exempt
@anonymous_user_required
def forgot_password():

View File

@@ -181,7 +181,7 @@ class Message(IProcessDesc):
if s is None:
return gettext("Not available")
return html.safe_str("{0} ({1}:{2})".format(s.name, s.host, s.port))
return "{0} ({1}:{2})".format(s.name, s.host, s.port)
def details(self, cmd, args):
return {