Skip to content
GitLab
Next
Menu
Why GitLab
Pricing
Contact Sales
Explore
Why GitLab
Pricing
Contact Sales
Explore
Sign in
Get free trial
Primary navigation
Search or go to…
Project
GitLab
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Privacy statement
Keyboard shortcuts
?
What's new
4
Snippets
Groups
Projects
Show more breadcrumbs
GitLab.org
GitLab
Commits
4d66d317
Commit
4d66d317
authored
3 years ago
by
Igor Drozdov
Browse files
Options
Downloads
Patches
Plain Diff
Rename deprecated normalize to unicode_normalize
parent
060167eb
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Gemfile
+1
-1
1 addition, 1 deletion
Gemfile
Gemfile.lock
+2
-2
2 additions, 2 deletions
Gemfile.lock
lib/gitlab/auth/o_auth/auth_hash.rb
+1
-1
1 addition, 1 deletion
lib/gitlab/auth/o_auth/auth_hash.rb
with
4 additions
and
4 deletions
Gemfile
+
1
−
1
View file @
4d66d317
...
...
@@ -264,7 +264,7 @@ gem 'kubeclient', '~> 4.9.1'
# Sanitize user input
gem
'
sanitize
'
,
'~> 5.2.1'
gem
'
babosa
'
,
'~> 1.0.
2
'
gem
'
babosa
'
,
'~> 1.0.
4
'
# Sanitizes SVG input
gem
'
loofah
'
,
'~> 2.2'
...
...
This diff is collapsed.
Click to expand it.
Gemfile.lock
+
2
−
2
View file @
4d66d317
...
...
@@ -141,7 +141,7 @@ GEM
faraday_middleware (~> 1.0.0.rc1)
net-http-persistent (~> 4.0)
nokogiri (~> 1.11.0.rc2)
babosa (1.0.
2
)
babosa (1.0.
4
)
base32 (0.3.2)
batch-loader (2.0.1)
bcrypt (3.1.16)
...
...
@@ -1368,7 +1368,7 @@ DEPENDENCIES
aws-sdk-cloudformation (~> 1)
aws-sdk-core (~> 3)
aws-sdk-s3 (~> 1)
babosa (~> 1.0.
2
)
babosa (~> 1.0.
4
)
base32 (~> 0.3.0)
batch-loader (~> 2.0.1)
bcrypt (~> 3.1, >= 3.1.14)
...
...
This diff is collapsed.
Click to expand it.
lib/gitlab/auth/o_auth/auth_hash.rb
+
1
−
1
View file @
4d66d317
...
...
@@ -81,7 +81,7 @@ def username_and_email
# Get the first part of the email address (before @)
# In addition in removes illegal characters
def
generate_username
(
email
)
email
.
match
(
/^[^@]*/
)[
0
].
mb_chars
.
normalize
(
:kd
).
gsub
(
/[^\x00-\x7F]/
,
''
).
to_s
email
.
match
(
/^[^@]*/
)[
0
].
mb_chars
.
unicode_
normalize
(
:
nf
kd
).
gsub
(
/[^\x00-\x7F]/
,
''
).
to_s
end
def
generate_temporarily_email
(
username
)
...
...
This diff is collapsed.
Click to expand it.
Igor Drozdov
@igor.drozdov
mentioned in commit
9b0fdf46
·
3 years ago
mentioned in commit
9b0fdf46
mentioned in commit 9b0fdf46eedad1ef2cd7b57cb7b082ad32e8c26f
Toggle commit list
Thong Kuah
@tkuah
mentioned in commit
a0e23b5d
·
3 years ago
mentioned in commit
a0e23b5d
mentioned in commit a0e23b5d9e8c1a982b7dae882062bbe7a0178f35
Toggle commit list
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment