diff options
author | Lin Jen-Shin <godfat@godfat.org> | 2016-03-23 20:22:09 +0800 |
---|---|---|
committer | Lin Jen-Shin <godfat@godfat.org> | 2016-03-23 20:22:09 +0800 |
commit | ecc060d701968b75009f47a3b7ac5b727022782c (patch) | |
tree | eea78e36ccc7b7414ea5b520a71e711dbefbf8bb | |
parent | 7124e5a44c045dae511c0cac65c936b445c1a5b6 (diff) | |
download | gitlab-ce-ecc060d701968b75009f47a3b7ac5b727022782c.tar.gz |
Make sure we get only two returns
-rw-r--r-- | app/models/project.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/project.rb b/app/models/project.rb index 9c8246e8ac0..2285063ab50 100644 --- a/app/models/project.rb +++ b/app/models/project.rb @@ -304,7 +304,7 @@ class Project < ActiveRecord::Base end def find_with_namespace(id) - namespace_path, project_path = id.split('/') + namespace_path, project_path = id.split('/', 2) return nil if !namespace_path || !project_path |