summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2015-04-11 16:49:03 -0400
committerRobert Speicher <rspeicher@gmail.com>2015-04-15 12:25:37 -0400
commite24cb79f3196052395829b35d51693dc9de5afbe (patch)
tree4b3d9762e0d9ed90476f3ece2a3ad81661e95268 /config
parent1e27b68b364cfc0b504e7db429c2450d75b72cfd (diff)
downloadgitlab-ce-e24cb79f3196052395829b35d51693dc9de5afbe.tar.gz
Add constraints to help#show route parameters
Diffstat (limited to 'config')
-rw-r--r--config/routes.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/config/routes.rb b/config/routes.rb
index af58e095d9a..8dbe6d80ab7 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -39,7 +39,7 @@ Gitlab::Application.routes.draw do
# Help
get 'help' => 'help#index'
- get 'help/:category/:file' => 'help#show', as: :help_page
+ get 'help/:category/:file' => 'help#show', as: :help_page, constraints: { category: /[^\.]+/, file: /[^\.]+/ }
get 'help/shortcuts'
get 'help/ui' => 'help#ui'