aboutsummaryrefslogtreecommitdiffstats
path: root/include/account.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2018-03-28 19:25:11 -0700
committerzotlabs <mike@macgirvin.com>2018-03-28 19:25:11 -0700
commitcd485b0fdf159ed30b73d7bf84d132ab3af9a418 (patch)
treeb8f23b8aebf3b51b8d1f62adc5823d8da9cbf225 /include/account.php
parent1cf0de568ddb4b49ad27e50572779a61f4e7fd13 (diff)
downloadvolse-hubzilla-cd485b0fdf159ed30b73d7bf84d132ab3af9a418.tar.gz
volse-hubzilla-cd485b0fdf159ed30b73d7bf84d132ab3af9a418.tar.bz2
volse-hubzilla-cd485b0fdf159ed30b73d7bf84d132ab3af9a418.zip
hubzilla issue #1015 - login with unicode domain name
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 );