Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/app/roles
diff options
context:
space:
mode:
authortomykaira <tomykaira@gmail.com>2012-07-28 16:59:30 +0400
committertomykaira <tomykaira@gmail.com>2012-07-28 17:05:25 +0400
commit03a2995e15e69ad1ec73b1c0ecefaf3d2551b0da (patch)
treeb837194220784cabd84a88f92b108a529a5e131b /app/roles
parent8b7e404b5b6944e9c92cc270b2e5d0005781d49d (diff)
Fix #1009 Replace all special characters in user's identity
Diffstat (limited to 'app/roles')
-rw-r--r--app/roles/account.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/roles/account.rb b/app/roles/account.rb
index e86dc5939e0..e77cbe6cb45 100644
--- a/app/roles/account.rb
+++ b/app/roles/account.rb
@@ -1,6 +1,6 @@
module Account
def identifier
- email.gsub /[@.]/, "_"
+ email.gsub /[^[:alnum:]]/, "_"
end
def is_admin?