aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-04-13 16:58:21 -0700
committerFriendika <info@friendika.com>2011-04-13 16:58:21 -0700
commit17a7dae67d9c5e6e326b0c9e60e72a85ab005aa5 (patch)
tree04b93871e2f91b4baced33df12f156147bff0de3 /mod
parent767f165965280a9a6b7b5a0fbaa533b3a35bc723 (diff)
downloadvolse-hubzilla-17a7dae67d9c5e6e326b0c9e60e72a85ab005aa5.tar.gz
volse-hubzilla-17a7dae67d9c5e6e326b0c9e60e72a85ab005aa5.tar.bz2
volse-hubzilla-17a7dae67d9c5e6e326b0c9e60e72a85ab005aa5.zip
doco
Diffstat (limited to 'mod')
-rw-r--r--mod/register.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/mod/register.php b/mod/register.php
index ec68aaef4..5fe7c0c6d 100644
--- a/mod/register.php
+++ b/mod/register.php
@@ -85,8 +85,11 @@ function register_post(&$a) {
// So now we are just looking for a space in the full name.
$loose_reg = get_config('system','no_regfullname');
- if((! $loose_reg) && (! strpos($username,' ')))
- $err .= t("That doesn't appear to be your full \x28First Last\x29 name.") . EOL;
+ if(! $loose_reg) {
+ $username = mb_convert_case($username,MB_CASE_TITLE,'UTF-8');
+ if(! strpos($username,' '))
+ $err .= t("That doesn't appear to be your full \x28First Last\x29 name.") . EOL;
+ }
if(! allowed_email($email))
$err .= t('Your email domain is not among those allowed on this site.') . EOL;