mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-17 00:26:07 +10:00
Merge pull request #9104 from jdsn/fix-issue9098-clean_path
Fix issue9098 clean path
This commit is contained in:
@@ -61,8 +61,8 @@ class Namespace < ActiveRecord::Base
|
||||
def clean_path(path)
|
||||
path.gsub!(/@.*\z/, "")
|
||||
path.gsub!(/\.git\z/, "")
|
||||
path.gsub!(/\A-/, "")
|
||||
path.gsub!(/.\z/, "")
|
||||
path.gsub!(/\A-+/, "")
|
||||
path.gsub!(/\.+\z/, "")
|
||||
path.gsub!(/[^a-zA-Z0-9_\-\.]/, "")
|
||||
|
||||
counter = 0
|
||||
|
||||
Reference in New Issue
Block a user