Fix incorrect regex escaping
parent
0a6b06fb29
commit
87c21a06eb
|
@ -7,7 +7,7 @@
|
|||
{
|
||||
include_once 'app/FormValidator.php';
|
||||
$validator = new FormValidator(array(
|
||||
'username' => array('required' => true, 'regex' => '/[^\\\/<>\s]{1,64} [^\\\/<>\s]{1,64}/'),
|
||||
'username' => array('required' => true, 'regex' => '/[^\\/<>\s]{1,64} [^\\/<>\s]{1,64}/'),
|
||||
'password' => array('required' => true, 'regex' => '/.{1,1000}/')
|
||||
));
|
||||
|
||||
|
|
|
@ -38,7 +38,7 @@
|
|||
|
||||
$validator = new FormValidator(array(
|
||||
'tos' => array('required' => true, 'equals' => 'on'),
|
||||
'username' => array('required' => true, 'regex' => '/[^\\\/<>\s]{1,64}( [^\\\/<>\s]{1,64})?/'),
|
||||
'username' => array('required' => true, 'regex' => '/[^\\/<>\s]{1,64}( [^\\/<>\s]{1,64})?/'),
|
||||
'password' => array('required' => true, 'regex' => '/.{1,1000}/'),
|
||||
'email' => array('required' => true, 'regex' => '/\S{1,64}@\S{1,250}.\S{2,64}/'),
|
||||
'avatar' => array('required' => true)
|
||||
|
|
Loading…
Reference in New Issue