Browse Source

add NS meta validation

main
ghost 11 months ago
parent
commit
5474175163
  1. 13
      src/Controller/RoomController.php

13
src/Controller/RoomController.php

@ -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…
Cancel
Save