make case-insensitive room name validation

This commit is contained in:
ghost 2023-12-10 01:32:51 +02:00
parent be1db028f0
commit ca91389ef0

View File

@ -642,10 +642,10 @@ class RoomController extends AbstractController
foreach ((array) $client->kevaListNamespaces() as $value) foreach ((array) $client->kevaListNamespaces() as $value)
{ {
$rooms[$value['namespaceId']] = $value['displayName']; $rooms[$value['namespaceId']] = mb_strtolower($value['displayName']);
} }
if (in_array($name, $rooms)) if (in_array(mb_strtolower($name), $rooms))
{ {
return $this->redirectToRoute( return $this->redirectToRoute(
'room_list', 'room_list',