write_page first slash fix
This commit is contained in:
@@ -290,6 +290,7 @@ module Precious
|
||||
wiki = wiki_new
|
||||
|
||||
begin
|
||||
path.gsub!(/^\//, '')
|
||||
wiki.write_page(name, format, params[:content], commit_message, path)
|
||||
|
||||
page_dir = settings.wiki_options[:page_file_dir].to_s
|
||||
|
||||
Reference in New Issue
Block a user