1
0
Fork 0

Fix user name regex

master
Anonymous Contributor 2023-08-23 18:16:34 +02:00
parent 390aa89d9f
commit c49a52e116
1 changed files with 1 additions and 1 deletions

View File

@ -8,7 +8,7 @@
if(isset($_POST['login']))
{
$validator = new FormValidator(array(
'username' => array('required' => true, 'regex' => '([^\\\/<>\s]+ [^\\\/<>\s]+){3,255}'),
'username' => array('required' => true, 'regex' => '[^\\\/<>\s]{1,64} [^\\\/<>\s]{1,64}'),
'password' => array('required' => true, 'regex' => '.{1,1000}')
));