Commit e703a0e8 authored by friz's avatar friz
Browse files

Oops, bad character in the regex

parent fc5f0fda
......@@ -331,7 +331,7 @@ class phpTodoUser {
* address fails validation
*/
public function email($email = '') {
$phpTodo_emailRegex = '/^([a-zA-Z0-9_\-\.!#\$%&\*\+\/=\?\^\{\|\}~]{0,64}@[a-zA-Z0-9\-\.]{0,255}){0,256)\z/';
$phpTodo_emailRegex = '/^([a-zA-Z0-9_\-\.!#\$%&\*\+\/=\?\^\{\|\}~]{0,64}@[a-zA-Z0-9\-\.]{0,255}){0,256}\z/';
if (! empty($email) && (! strcmp($email, $this->email) == 0)) {
if (preg_match($phpTodo_emailRegex, $email)) {
$this->email = $email;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment