From ca91389ef035a4b5ba014fd08746664c0afc7143 Mon Sep 17 00:00:00 2001 From: ghost Date: Sun, 10 Dec 2023 01:32:51 +0200 Subject: [PATCH] make case-insensitive room name validation --- src/Controller/RoomController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Controller/RoomController.php b/src/Controller/RoomController.php index 4c0226a..36c4ff3 100644 --- a/src/Controller/RoomController.php +++ b/src/Controller/RoomController.php @@ -642,10 +642,10 @@ class RoomController extends AbstractController 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( 'room_list',