diff --git a/pages/password.php b/pages/password.php index 914ba50..464ca2f 100644 --- a/pages/password.php +++ b/pages/password.php @@ -7,9 +7,9 @@ include 'app/FormValidator.php'; $validator = new FormValidator(array( - 'oldPassword' => array('required' => true, 'regex' => '.{1,1000}'), - 'newPassword' => array('required' => true, 'regex' => '.{1,1000}'), - 'newPasswordRepeat' => array('required' => true, 'regex' => '.{1,1000}') + 'oldPassword' => array('required' => true, 'regex' => '/.{1,1000}/'), + 'newPassword' => array('required' => true, 'regex' => '/.{1,1000}/'), + 'newPasswordRepeat' => array('required' => true, 'regex' => '/.{1,1000}/') )); if($validator->isValid($_POST)) {