Prevent xss attack over group name. Added regex validation for group and team name
This commit is contained in:
parent
cfdf94fc27
commit
020078663e
5 changed files with 22 additions and 6 deletions
|
@ -10,6 +10,10 @@ module Gitlab
|
|||
/\A[a-zA-Z][a-zA-Z0-9_\-\. ]*\z/
|
||||
end
|
||||
|
||||
def name_regex
|
||||
/\A[a-zA-Z0-9_\-\. ]*\z/
|
||||
end
|
||||
|
||||
def path_regex
|
||||
default_regex
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue