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

@@ -115,9 +115,6 @@ class BackupMessage(IProcessDesc):
host = manager.local_bind_host if manager.use_ssh_tunnel else s.host
port = manager.local_bind_port if manager.use_ssh_tunnel else s.port
s.name = html.safe_str(s.name)
host = html.safe_str(host)
port = html.safe_str(port)
return "{0} ({1}:{2})".format(s.name, host, port)
@property
@@ -140,9 +137,7 @@ class BackupMessage(IProcessDesc):
return _(
"Backing up an object on the server '{0}' "
"from database '{1}'"
).format(server_name,
html.safe_str(self.database)
)
).format(server_name, self.database)
if self.backup_type == BACKUP.GLOBALS:
return _("Backing up the global objects on "
"the server '{0}'").format(