From 2525e73caacd272ca0e7833f9a5b60d15cd1bfea Mon Sep 17 00:00:00 2001 From: Ferdinand Thiessen Date: Thu, 21 Mar 2024 18:59:36 +0100 Subject: fix(DB): Sanitize `host` parameter for postgres databases when IPv6 address is passed Doctrine is using `pg_connect` with the `host` parameter, this does not allow IPv6 addresses in URI notation. So we need to extract the IP address and pass it directly Signed-off-by: Ferdinand Thiessen --- config/config.sample.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'config/config.sample.php') diff --git a/config/config.sample.php b/config/config.sample.php index e09b0904808..3fe70e8d783 100644 --- a/config/config.sample.php +++ b/config/config.sample.php @@ -112,9 +112,9 @@ $CONFIG = [ /** * Your host server name, for example ``localhost``, ``hostname``, - * ``hostname.example.com``, or the IP address. To specify a port use - * ``hostname:####``; to specify a Unix socket use - * ``/path/to/directory/containing/socket`` e.g. ``/run/postgresql/``. + * ``hostname.example.com``, or the IP address. + * To specify a port use ``hostname:####``, for IPv6 addresses use the URI notation ``[ip]:port``. + * To specify a Unix socket use ``/path/to/directory/containing/socket``, e.g. ``/run/postgresql/``. */ 'dbhost' => '', -- cgit v1.2.3