From 2f0f4ca056f92ffd2bbf80e7b7c49b489d6e7ed4 Mon Sep 17 00:00:00 2001 From: Horus3 Date: Wed, 12 Mar 2014 22:11:50 +0100 Subject: more modular for greater flexibility --- www/functions/func_register.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'www/functions/func_register.php') diff --git a/www/functions/func_register.php b/www/functions/func_register.php index eba653f..1d12e2b 100644 --- a/www/functions/func_register.php +++ b/www/functions/func_register.php @@ -14,9 +14,7 @@ function register($db){ return false; } - /* TODO: allow full unicode */ - - if(preg_match("/[^-_0-9a-zA-Z]/", $name) || preg_match("/[^-_0-9a-zA-Z]/", $cleartext_password) || preg_match("/[^-_0-9a-zA-Z@.]/", $email)){ + if(!preg_match("/[^.+@.+]/", $email)){ header("Refresh: 0; /register?reason=encoding"); return false; } -- cgit v1.2.3