mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-04-08 17:15:08 +02:00
UserBackend: Always use utf8
as db connection charset
This commit is contained in:
parent
8fc1f8b016
commit
7ce3778378
@ -223,7 +223,12 @@ class UserBackend implements ConfigAwareFactory
|
||||
);
|
||||
}
|
||||
|
||||
$resource = ResourceFactory::create($backendConfig->resource);
|
||||
$resourceConfig = ResourceFactory::getResourceConfig($backendConfig->resource);
|
||||
if ($backendType === 'db') {
|
||||
$resourceConfig->charset = 'utf8';
|
||||
}
|
||||
|
||||
$resource = ResourceFactory::createResource($resourceConfig);
|
||||
switch ($backendType) {
|
||||
case 'db':
|
||||
$backend = new DbUserBackend($resource);
|
||||
|
Loading…
x
Reference in New Issue
Block a user