Fixed 2 small UI issues in CP

This commit is contained in:
Pinga 2024-11-20 16:51:35 +02:00
parent 7e42e4c45f
commit cb6e2da3d7
2 changed files with 3 additions and 3 deletions

View file

@ -453,11 +453,11 @@ class RegistrarsController extends Controller
if ($args) {
$args = trim($args);
if (!preg_match('/^[a-z0-9]+$/', $args)) {
if (!preg_match('/^[a-z0-9\-]+$/', $args)) {
$this->container->get('flash')->addMessage('error', 'Invalid registrar');
return $response->withHeader('Location', '/registrars')->withStatus(302);
}
$registrar = $db->selectRow('SELECT * FROM registrar WHERE clid = ?',
[ $args ]);