mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-22 22:56:29 +00:00
Escape double-quotes in strings passed to an event notification script
The string in question will be generated internally by repmgr as a simple one-line string with no control characters etc., so all that needs to be escaped at the moment are any double quotes.
This commit is contained in:
@@ -142,6 +142,8 @@ extern char *escape_recovery_conf_value(const char *src);
|
||||
|
||||
extern char *escape_string(PGconn *conn, const char *string);
|
||||
|
||||
extern void escape_double_quotes(char *string, PQExpBufferData *out);
|
||||
|
||||
extern void
|
||||
append_where_clause(PQExpBufferData *where_clause, const char *clause,...)
|
||||
__attribute__((format(PG_PRINTF_ATTRIBUTE, 2, 3)));
|
||||
|
||||
Reference in New Issue
Block a user