aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorFerdinand Thiessen <opensource@fthiessen.de>2024-03-21 18:59:36 +0100
committerFerdinand Thiessen <opensource@fthiessen.de>2024-03-25 20:25:17 +0100
commit2525e73caacd272ca0e7833f9a5b60d15cd1bfea (patch)
treed19433a6dfb96874042600ea1772cff920c53fea /config
parentae19e949edabd0f76bf909a8df0ff4b049fc2b7b (diff)
downloadnextcloud-server-2525e73caacd272ca0e7833f9a5b60d15cd1bfea.tar.gz
nextcloud-server-2525e73caacd272ca0e7833f9a5b60d15cd1bfea.zip
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 <opensource@fthiessen.de>
Diffstat (limited to 'config')
-rw-r--r--config/config.sample.php6
1 files changed, 3 insertions, 3 deletions
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' => '',