diff options
author | Ahmad Sherif <me@ahmadsherif.com> | 2016-07-27 15:45:18 +0200 |
---|---|---|
committer | Ahmad Sherif <me@ahmadsherif.com> | 2016-07-27 15:46:54 +0200 |
commit | 3e17187ff0f21b2ce030ba3cac5e13e05f0c254e (patch) | |
tree | bc981db2678ee620b8f4637944befe87d4c23f46 /config | |
parent | aed644ccc084223cb1f9c5d955569c5ff9eeaf88 (diff) | |
download | gitlab-ce-3e17187ff0f21b2ce030ba3cac5e13e05f0c254e.tar.gz |
Change requests_profiles resource constraint to catch virtually any filefix/requests-profiles-controller-does-not-catch-certain-files
Diffstat (limited to 'config')
-rw-r--r-- | config/routes.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/config/routes.rb b/config/routes.rb index 414ba69dfae..308d83af57e 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -279,7 +279,7 @@ Rails.application.routes.draw do resource :health_check, controller: 'health_check', only: [:show] resource :background_jobs, controller: 'background_jobs', only: [:show] resource :system_info, controller: 'system_info', only: [:show] - resources :requests_profiles, only: [:index, :show], param: :name + resources :requests_profiles, only: [:index, :show], param: :name, constraints: { name: /.+\.html/ } resources :namespaces, path: '/projects', constraints: { id: /[a-zA-Z.0-9_\-]+/ }, only: [] do root to: 'projects#index', as: :projects |