projects
/
WP-Plugins
/
glm-member-db-contacts.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
971c3b9
)
Remove the preg match replace for usernames
author
Steve Sutton
<steve@gaslightmedia.com>
Thu, 24 May 2018 15:05:45 +0000
(11:05 -0400)
committer
Steve Sutton
<steve@gaslightmedia.com>
Thu, 24 May 2018 15:05:45 +0000
(11:05 -0400)
@ and . are allowed.
models/admin/import/contacts.php
patch
|
blob
|
history
diff --git
a/models/admin/import/contacts.php
b/models/admin/import/contacts.php
index
7cbb33b
..
e45fa7a
100644
(file)
--- 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]);