Content-Length: 260132 | pFad | http://github.com/postgrespro/postgres_cluster/commit/31612f3acde9a638068db7e830352fefb71cedc0

FF strip whitespace chars in front of connstrings · postgrespro/postgres_cluster@31612f3 · GitHub
Skip to content

Commit 31612f3

Browse files
committed
strip whitespace chars in front of connstrings
1 parent 779927d commit 31612f3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

contrib/mmts/multimaster.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2774,6 +2774,10 @@ void MtmUpdateNodeConnectionInfo(MtmConnectionInfo* conn, char const* connStr)
27742774
MTM_ELOG(ERROR, "Too long (%d) connection string '%s': limit is %d",
27752775
connStrLen, connStr, MULTIMASTER_MAX_CONN_STR_SIZE-1);
27762776
}
2777+
2778+
while(isspace(*connStr))
2779+
connStr++;
2780+
27772781
strcpy(conn->connStr, connStr);
27782782

27792783
host = strstr(connStr, "host=");

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres_cluster/commit/31612f3acde9a638068db7e830352fefb71cedc0

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy