mirror of
https://github.com/kevachat/webapp.git
synced 2025-01-24 05:24:19 +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
|
// Check room name not added before
|
||||||
$rooms = [];
|
$rooms = [];
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user