summaryrefslogtreecommitdiff
path: root/www/functions/func_register.php
diff options
context:
space:
mode:
Diffstat (limited to 'www/functions/func_register.php')
-rw-r--r--www/functions/func_register.php4
1 files changed, 1 insertions, 3 deletions
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;
}