mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-28 00:04:04 +02:00
UserGroupBackend: Always use utf8
as db connection charset
This commit is contained in:
parent
7ce3778378
commit
517c108cc4
@ -164,8 +164,13 @@ class UserGroupBackend
|
|||||||
$name
|
$name
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
$resource = ResourceFactory::create($backendConfig->resource);
|
|
||||||
|
|
||||||
|
$resourceConfig = ResourceFactory::getResourceConfig($backendConfig->resource);
|
||||||
|
if ($backendType === 'db') {
|
||||||
|
$resourceConfig->charset = 'utf8';
|
||||||
|
}
|
||||||
|
|
||||||
|
$resource = ResourceFactory::createResource($resourceConfig);
|
||||||
switch ($backendType) {
|
switch ($backendType) {
|
||||||
case 'db':
|
case 'db':
|
||||||
$backend = new DbUserGroupBackend($resource);
|
$backend = new DbUserGroupBackend($resource);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user