mirror of
https://github.com/kevachat/webapp.git
synced 2025-01-23 04:54:32 +00:00
make case-insensitive room name validation
This commit is contained in:
parent
be1db028f0
commit
ca91389ef0
@ -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',
|
||||
|
Loading…
x
Reference in New Issue
Block a user