diff options
author | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2016-01-08 14:23:45 -0200 |
---|---|---|
committer | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2016-01-14 12:09:31 -0200 |
commit | aac6598482036e12a20b4c75f2a508bd6a017245 (patch) | |
tree | 40efe11ce354a786a4f694a55a7a68ad8ea6cdec /config | |
parent | 78f5eb94fb15f7e4cc4208a4871b9533243bec40 (diff) | |
download | gitlab-ce-aac6598482036e12a20b4c75f2a508bd6a017245.tar.gz |
Relax constraints for wiki slug
Since GitHub doesn’t apply these constraints to theirs wiki slug
allowing characters like `,`, `:`, `*`, etc, we need to relax our
constraints or some wiki pages will not be available after they were
imported.
For an example the Devise project have a wiki page with the following
slug: “How To: Add sign_in, sign_out, and sign_up links to your layout
template”
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 0a29782f55b..c71f5f190d5 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -513,7 +513,7 @@ Rails.application.routes.draw do end end - WIKI_SLUG_ID = { id: /[a-zA-Z.0-9_\-\/]+/ } unless defined? WIKI_SLUG_ID + WIKI_SLUG_ID = { id: /[\S]+/ } unless defined? WIKI_SLUG_ID scope do # Order matters to give priority to these matches |