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
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2022-03-29 18:09:53 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2022-03-29 18:09:53 +0300
commit9c28b22cfc7b2b9306b9c72d53f5c88c3129eb67 (patch)
tree92e5e3ac55cfa092d473abca506546cf56e2215c /lib/gitlab/auth
parentef59e05bd14aea8bf19bbe77c52116bfe24c7107 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/gitlab/auth')
-rw-r--r--lib/gitlab/auth/ldap/dn.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/auth/ldap/dn.rb b/lib/gitlab/auth/ldap/dn.rb
index ea88dedadf5..a188aa168c1 100644
--- a/lib/gitlab/auth/ldap/dn.rb
+++ b/lib/gitlab/auth/ldap/dn.rb
@@ -30,7 +30,7 @@ module Gitlab
def self.normalize_value(given_value)
dummy_dn = "placeholder=#{given_value}"
normalized_dn = new(*dummy_dn).to_normalized_s
- normalized_dn.sub(/\Aplaceholder=/, '')
+ normalized_dn.delete_prefix('placeholder=')
end
##