From: Steve Sutton Date: Thu, 24 May 2018 15:05:45 +0000 (-0400) Subject: Remove the preg match replace for usernames X-Git-Tag: v1.1.12^2~26 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=df9653d2f49243707a45d8821dc9f82ad770b742;p=WP-Plugins%2Fglm-member-db-contacts.git Remove the preg match replace for usernames @ and . are allowed. --- diff --git a/models/admin/import/contacts.php b/models/admin/import/contacts.php index 7cbb33b..e45fa7a 100644 --- a/models/admin/import/contacts.php +++ b/models/admin/import/contacts.php @@ -390,7 +390,7 @@ class GlmMembersAdmin_import_contacts extends GlmDataContacts // Get the contact data into standard parameters $oldMemberID = ($c[0]-0); $memberName = trim($c[1]); - $memberLogin = preg_replace('/[^a-zA-Z0-9_-]+/', '', trim($c[2])); + $memberLogin = trim($c[2]);//preg_replace('/[^a-zA-Z0-9_-.\\@]+/', '', trim($c[2])); $memberPasswd = trim($c[3]); $memberContactEmail = trim($c[4]); $contactFname = trim($c[5]);