mirror of
https://github.com/getnamingo/registry.git
synced 2025-05-14 08:37:00 +02:00
Fixed 2 small UI issues in CP
This commit is contained in:
parent
7e42e4c45f
commit
cb6e2da3d7
2 changed files with 3 additions and 3 deletions
|
@ -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 ]);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue