diff options
author | Rémy Coutable <remy@rymai.me> | 2018-01-25 19:19:36 +0300 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2018-01-25 19:19:36 +0300 |
commit | e4c2ce6f67ffdaa88ee394c93e07f175f6e309eb (patch) | |
tree | d446d5543f62769e3694e8505fbd3dc6f228d517 /config | |
parent | 5c68c839c09f2a091fa677d35cbfd3de5a2e6d43 (diff) | |
parent | bb9b7bf6e33ae68d1f898c4cd5e09b44bee2be80 (diff) |
Merge branch '40028-special-characters-on-issuable-templates' into 'master'
Handling special characters in Issuable Templates
Closes #40028
See merge request gitlab-org/gitlab-ce!15323
Diffstat (limited to 'config')
-rw-r--r-- | config/routes/project.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/config/routes/project.rb b/config/routes/project.rb index 43ada9ba145..0496bd85b4e 100644 --- a/config/routes/project.rb +++ b/config/routes/project.rb @@ -40,7 +40,7 @@ constraints(ProjectUrlConstrainer.new) do # # Templates # - get '/templates/:template_type/:key' => 'templates#show', as: :template + get '/templates/:template_type/:key' => 'templates#show', as: :template, constraints: { key: /[^\/]+/ } resource :avatar, only: [:show, :destroy] resources :commit, only: [:show], constraints: { id: /\h{7,40}/ } do |