mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Backup, Maintenance and Restore should not be started if database name contains "=" symbol. Fixes #1220 #1221
This commit is contained in:
committed by
Akshay Joshi
parent
8937375885
commit
567f764234
@@ -835,6 +835,17 @@ commonUtils
|
||||
if (!node)
|
||||
return;
|
||||
|
||||
var treeInfo = node.getTreeNodeHierarchy.apply(node, [item]);
|
||||
|
||||
if (treeInfo.database._label.indexOf('=') >= 0) {
|
||||
alertify.alert(
|
||||
gettext('Backup error'),
|
||||
gettext('Backup job creation failed. '+
|
||||
'Databases with = symbols in the name cannot be backed up using this utility.')
|
||||
);
|
||||
return;
|
||||
}
|
||||
|
||||
title = title.sprintf(node.label, data.label).value();
|
||||
|
||||
if (!alertify.backup_objects) {
|
||||
|
||||
Reference in New Issue
Block a user