Browse Source

make case-insensitive room name validation

main
ghost 12 months ago
parent
commit
ca91389ef0
  1. 4
      src/Controller/RoomController.php

4
src/Controller/RoomController.php

@ -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',

Loading…
Cancel
Save