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>2017-04-13 12:54:02 +0300
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2017-04-13 12:54:02 +0300
commitb5b6c7b17527cc2360066557207af935bec2168f (patch)
tree5d1eb736f0d9a892f73dfff7f0739d75e7359079 /lib/container_registry
parent259108ada340a0f1d49e2d80d1c433a377983e1c (diff)
Sanitize container repository path in model class
Diffstat (limited to 'lib/container_registry')
-rw-r--r--lib/container_registry/path.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/container_registry/path.rb b/lib/container_registry/path.rb
index 30828bb6565..4a585996aa5 100644
--- a/lib/container_registry/path.rb
+++ b/lib/container_registry/path.rb
@@ -15,7 +15,7 @@ module ContainerRegistry
LEVELS_SUPPORTED = 3
def initialize(path)
- @path = path.downcase
+ @path = path.to_s.downcase
end
def valid?
@@ -25,7 +25,7 @@ module ContainerRegistry
end
def components
- @components ||= @path.to_s.split('/')
+ @components ||= @path.split('/')
end
def nodes