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:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2018-11-28 14:00:17 +0300
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2018-11-28 14:00:17 +0300
commit4c7665f2f930bba855646143684070544044de10 (patch)
tree4de3284dce6a99344bde2443509d0034f78794a6 /lib/gitlab/utils.rb
parentb7f35e893999b6cf1bc003747f28861be3412ab1 (diff)
Pad encryption keys with UTF-8 0 instead of \0 char
Diffstat (limited to 'lib/gitlab/utils.rb')
-rw-r--r--lib/gitlab/utils.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/utils.rb b/lib/gitlab/utils.rb
index 96d2ed88b83..e0e8f598ba4 100644
--- a/lib/gitlab/utils.rb
+++ b/lib/gitlab/utils.rb
@@ -28,7 +28,7 @@ module Gitlab
end
end
- truncated + ("\0" * (bytes - truncated.bytesize))
+ truncated + ('0' * (bytes - truncated.bytesize))
end
# Append path to host, making sure there's one single / in between