diff options
author | Stan Hu <stanhu@gmail.com> | 2015-03-21 18:04:29 -0700 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2015-03-21 18:33:51 -0700 |
commit | 59d5c779758a696233d2f2adcf145c0a93a8fb2f (patch) | |
tree | 5410c902bf776147ec55febe8014179b0250740e /app/models/project_wiki.rb | |
parent | aadd38dbb9b8fbae91be4b509dc18295ff06c8ee (diff) | |
download | gitlab-ce-59d5c779758a696233d2f2adcf145c0a93a8fb2f.tar.gz |
Fix dots in Wiki slug causing errors
Closes #1263, #431
Diffstat (limited to 'app/models/project_wiki.rb')
-rw-r--r-- | app/models/project_wiki.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/project_wiki.rb b/app/models/project_wiki.rb index 55438bee245..772c868d9cd 100644 --- a/app/models/project_wiki.rb +++ b/app/models/project_wiki.rb @@ -104,7 +104,7 @@ class ProjectWiki def page_title_and_dir(title) title_array = title.split("/") title = title_array.pop - [title.gsub(/\.[^.]*$/, ""), title_array.join("/")] + [title, title_array.join("/")] end def search_files(query) |