From a5467ba25d7692566b444e1538833ba3e00f7428 Mon Sep 17 00:00:00 2001 From: snipe Date: Tue, 2 Aug 2016 11:12:28 -0700 Subject: [PATCH] Slug the username to handle spaces, etc. --- app/Console/Commands/ObjectImportCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Console/Commands/ObjectImportCommand.php b/app/Console/Commands/ObjectImportCommand.php index b0a3e6ad22..84bb0a6fa6 100644 --- a/app/Console/Commands/ObjectImportCommand.php +++ b/app/Console/Commands/ObjectImportCommand.php @@ -660,7 +660,7 @@ class ObjectImportCommand extends Command $last_name = $user_email_array['last_name']; if ($user_email=='') { - $user_email = $user_email_array['username'].'@'.Setting::getSettings()->email_domain; + $user_email = str_slug($user_email_array['username']).'@'.Setting::getSettings()->email_domain; } if ($user_username=='') {