summaryrefslogtreecommitdiff
path: root/app/models/namespace.rb
diff options
context:
space:
mode:
authorJ. Daniel Schmidt <jdsn@suse.de>2015-04-08 15:50:38 +0200
committerJ. Daniel Schmidt <jdsn@suse.de>2015-04-08 15:54:21 +0200
commit706be563179c8842a9370b40c52a79256534d2a5 (patch)
tree77b618a33edf47e2df1942ad762853772ac9defe /app/models/namespace.rb
parent2794e57beb47677e51a40935dd59f7793de5ae85 (diff)
downloadgitlab-ce-706be563179c8842a9370b40c52a79256534d2a5.tar.gz
clean_path should drop all trailing dots, not just one
Diffstat (limited to 'app/models/namespace.rb')
-rw-r--r--app/models/namespace.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/namespace.rb b/app/models/namespace.rb
index fcce8b46dfe..8d9a85750ec 100644
--- a/app/models/namespace.rb
+++ b/app/models/namespace.rb
@@ -62,7 +62,7 @@ class Namespace < ActiveRecord::Base
path.gsub!(/@.*\z/, "")
path.gsub!(/\.git\z/, "")
path.gsub!(/\A-/, "")
- path.gsub!(/\.\z/, "")
+ path.gsub!(/\.+\z/, "")
path.gsub!(/[^a-zA-Z0-9_\-\.]/, "")
counter = 0