mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-27 17:06:29 +00:00
repmgr: escape conninfo parameters when cloning from Barman
This commit is contained in:
8
repmgr.c
8
repmgr.c
@@ -3064,10 +3064,10 @@ do_standby_clone(void)
|
|||||||
if (repmgr_conninfo_buf.len != 0)
|
if (repmgr_conninfo_buf.len != 0)
|
||||||
appendPQExpBufferChar(&repmgr_conninfo_buf, ' ');
|
appendPQExpBufferChar(&repmgr_conninfo_buf, ' ');
|
||||||
|
|
||||||
/* XXX escape option->values */
|
appendPQExpBuffer(&repmgr_conninfo_buf, "%s=",
|
||||||
appendPQExpBuffer(&repmgr_conninfo_buf, "%s=%s",
|
barman_conninfo.keywords[c]);
|
||||||
barman_conninfo.keywords[c],
|
appendConnStrVal(&repmgr_conninfo_buf,
|
||||||
barman_conninfo.values[c]);
|
barman_conninfo.values[c]);
|
||||||
}
|
}
|
||||||
|
|
||||||
log_verbose(LOG_DEBUG,
|
log_verbose(LOG_DEBUG,
|
||||||
|
|||||||
Reference in New Issue
Block a user