aboutsummaryrefslogtreecommitdiffstats
path: root/include/account.php
diff options
context:
space:
mode:
authormrjive <mrjive@mrjive.it>2018-03-29 17:47:50 +0200
committerGitHub <noreply@github.com>2018-03-29 17:47:50 +0200
commit20ac91703d54679d2e5080ba2d4985e93986a515 (patch)
treedca933ae97c7eeaf855d8522163e989317ce918f /include/account.php
parentc98776923a3aed4a0a17ca1412787de3b718eba9 (diff)
parente06e64823fbecbe67bcf59897ecad6b9c402744e (diff)
downloadvolse-hubzilla-20ac91703d54679d2e5080ba2d4985e93986a515.tar.gz
volse-hubzilla-20ac91703d54679d2e5080ba2d4985e93986a515.tar.bz2
volse-hubzilla-20ac91703d54679d2e5080ba2d4985e93986a515.zip
Merge pull request #1 from redmatrix/dev
Dev
Diffstat (limited to 'include/account.php')
-rw-r--r--include/account.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/account.php b/include/account.php
index 40cf281c3..2b24364f4 100644
--- a/include/account.php
+++ b/include/account.php
@@ -23,6 +23,7 @@ function get_account_by_id($account_id) {
function check_account_email($email) {
+ $email = punify($email);
$result = array('error' => false, 'message' => '');
// Caution: empty email isn't counted as an error in this function.
@@ -139,7 +140,7 @@ function create_account($arr) {
$result = array('success' => false, 'email' => '', 'password' => '', 'message' => '');
$invite_code = ((x($arr,'invite_code')) ? notags(trim($arr['invite_code'])) : '');
- $email = ((x($arr,'email')) ? notags(trim($arr['email'])) : '');
+ $email = ((x($arr,'email')) ? notags(punify(trim($arr['email']))) : '');
$password = ((x($arr,'password')) ? trim($arr['password']) : '');
$password2 = ((x($arr,'password2')) ? trim($arr['password2']) : '');
$parent = ((x($arr,'parent')) ? intval($arr['parent']) : 0 );