mirror of
https://github.com/kevachat/webapp.git
synced 2025-01-08 22:07:53 +00:00
add NS meta validation
This commit is contained in:
parent
2549a3d790
commit
5474175163
@ -640,6 +640,19 @@ class RoomController extends AbstractController
|
||||
);
|
||||
}
|
||||
|
||||
// Validate meta NS
|
||||
if (str_starts_with($name, '_'))
|
||||
{
|
||||
return $this->redirectToRoute(
|
||||
'room_list',
|
||||
[
|
||||
'mode' => $request->get('mode'),
|
||||
'name' => $name,
|
||||
'error' => $translator->trans('Could not create namespace in meta area')
|
||||
]
|
||||
);
|
||||
}
|
||||
|
||||
// Check room name not added before
|
||||
$rooms = [];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user