Permalink
Browse files

No unidecode

  • Loading branch information...
Yoichi Imai
Yoichi Imai committed Nov 17, 2012
1 parent 1bf98a3 commit 8f56df20334cf3191dff7fd14bfff3cbe8a44afb
Showing with 3 additions and 2 deletions.
  1. +3 −2 lib/gollum/frontend/app.rb
@@ -19,7 +19,8 @@ class String
def to_url
return nil if self.nil?
return self if ['_Header', '_Footer', '_Sidebar'].include? self
upstream_to_url
##upstream_to_url
self
end
end
@@ -200,7 +201,7 @@ def wiki_new
begin
wiki.write_page(name, format, params[:content], commit_message, path)
redirect to("/#{clean_url(::File.join(path,name))}")
redirect to("/#{clean_url(encodeURIComponent(::File.join(path,name)))}")
rescue Gollum::DuplicatePageError => e
@message = "Duplicate page: #{e.message}"
mustache :error

0 comments on commit 8f56df2

Please sign in to comment.