Revert Revision 520; This is more thorough

This ensures that @page.name has the right (utf8)
encoding.
This commit is contained in:
Jacques Distler 2010-01-04 18:43:27 -06:00
parent d786e95a77
commit 6cf1463525
4 changed files with 6 additions and 3 deletions

View file

@ -389,6 +389,7 @@ class WikiController < ApplicationController
def load_page
@page_name = params['id'] ? params['id'].purify : nil
@page = @wiki.read_page(@web_name, @page_name) if @page_name
@page.name.as_utf8 if @page
end
private