Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStan Hu <stanhu@gmail.com>2015-03-22 04:04:29 +0300
committerStan Hu <stanhu@gmail.com>2015-03-22 04:33:51 +0300
commit59d5c779758a696233d2f2adcf145c0a93a8fb2f (patch)
tree5410c902bf776147ec55febe8014179b0250740e /app/models/project_wiki.rb
parentaadd38dbb9b8fbae91be4b509dc18295ff06c8ee (diff)
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.rb2
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)