From 4a825928dc8efb0d41781cbd523b85d4cf57fa11 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Wed, 9 Mar 2022 14:16:20 +0100 Subject: [SSPS] slx-admin: Set charset via connect string, so php knows about it --- .../static_files/slxadmin/srv/openslx/www/slx-admin/config.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/satellit_installer/static_files/slxadmin/srv/openslx/www/slx-admin/config.php b/satellit_installer/static_files/slxadmin/srv/openslx/www/slx-admin/config.php index c585f1b..a239fef 100644 --- a/satellit_installer/static_files/slxadmin/srv/openslx/www/slx-admin/config.php +++ b/satellit_installer/static_files/slxadmin/srv/openslx/www/slx-admin/config.php @@ -7,9 +7,11 @@ define('CONFIG_SESSION_DIR', '/tmp/openslx'); define('CONFIG_SESSION_TIMEOUT', 86400 * 3); // Put your mysql credentials here -define('CONFIG_SQL_DSN', 'mysql:dbname=openslx;host=localhost;charset=utf8mb4'); +define('CONFIG_SQL_DSN', 'mysql:dbname=openslx;host=localhost'); define('CONFIG_SQL_USER', 'openslx'); define('CONFIG_SQL_PASS', '%MYSQL_OPENSLX_PASS%'); +// Set this to true if you mysql server doesn't default to UTF-8 on new connections +define('CONFIG_SQL_FORCE_UTF8', false); define('CONFIG_TM_PASSWORD', '%TM_OPENSLX_PASS%'); -- cgit v1.2.3-55-g7522