From 3f45c76f481691f8b554c41eaa022140df437e95 Mon Sep 17 00:00:00 2001 From: bootstraponline Date: Tue, 3 Jul 2012 10:53:18 -0600 Subject: [PATCH] Extract path on edit. Fix #410. --- lib/gollum/frontend/app.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/gollum/frontend/app.rb b/lib/gollum/frontend/app.rb index 6f510853..b6cc0960 100644 --- a/lib/gollum/frontend/app.rb +++ b/lib/gollum/frontend/app.rb @@ -106,7 +106,7 @@ module Precious end post '/edit/*' do - path = sanitize_empty_params(params[:path]) + path = extract_path(sanitize_empty_params(params[:path])) wiki_options = settings.wiki_options.merge({ :page_file_dir => path }) wiki = Gollum::Wiki.new(settings.gollum_path, wiki_options) page = wiki.page(CGI.unescape(params[:page]))