1
0
mirror of https://github.com/postfixadmin/postfixadmin.git synced 2025-08-07 17:42:53 +03:00

possibly fix PGSQL PDO DSN to be unicode aware; see #243

This commit is contained in:
David Goodwin
2019-02-09 21:19:28 +00:00
parent 76e30d1dd3
commit 92d6259cd0

View File

@@ -1490,7 +1490,7 @@ function db_connect_with_errors() {
if (!isset($CONF['database_port'])) { if (!isset($CONF['database_port'])) {
$CONF['database_port'] = '5432'; $CONF['database_port'] = '5432';
} }
$dsn = "pgsql:host={$CONF['database_host']};port={$CONF['database_port']};dbname={$CONF['database_name']};charset=UTF8"; $dsn = "pgsql:host={$CONF['database_host']};port={$CONF['database_port']};dbname={$CONF['database_name']};options='-c client_encoding=utf8'";
} else { } else {
die("<p style='color: red'>FATAL Error:<br />Invalid \$CONF['database_type']! Please fix your config.inc.php!</p>"); die("<p style='color: red'>FATAL Error:<br />Invalid \$CONF['database_type']! Please fix your config.inc.php!</p>");
} }