diff options
| author | Horus3 | 2014-03-12 22:11:50 +0100 |
|---|---|---|
| committer | Horus3 | 2014-03-12 22:11:50 +0100 |
| commit | 2f0f4ca056f92ffd2bbf80e7b7c49b489d6e7ed4 (patch) | |
| tree | b14d63c782c3088d904858140d947492d946e29f /www/functions/func_register.php | |
| parent | 478a6dbc03c1ed65f5a187a6752bc130d3b82ac3 (diff) | |
| download | files.iamfabulous.de-2f0f4ca056f92ffd2bbf80e7b7c49b489d6e7ed4.tar.gz | |
more modular for greater flexibility
Diffstat (limited to 'www/functions/func_register.php')
| -rw-r--r-- | www/functions/func_register.php | 4 |
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; } |
