Add validation regex for new identity's name
parent
e192d3fd04
commit
f073fb621d
|
@ -57,7 +57,7 @@
|
|||
}
|
||||
else if(isset($_POST['createIdent'])) {
|
||||
$validator = new FormValidator(array(
|
||||
'newName' => array('required' => true, 'regex' => '')
|
||||
'newName' => array('required' => true, 'regex' => '/[^\\/<>\s]{1,64} [^\\/<>\s]{1,64}/')
|
||||
));
|
||||
|
||||
if($validator->isValid($_POST)) {
|
||||
|
|
Loading…
Reference in New Issue