Commit 2794e57b authored by J. Daniel Schmidt's avatar J. Daniel Schmidt

clean_path should not drop the last character

Fixes https://github.com/gitlabhq/gitlabhq/issues/9098
parent 4cf25eea
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment