Encode the page title in the URL of a diff page.

This commit is contained in:
Janusz Lewandowski
2015-01-03 17:56:51 +01:00
parent b55cdde9da
commit afb7d4c9d1
+1 -1
View File
@@ -372,7 +372,7 @@ module Precious
end
post '/compare/*' do
@file = params[:splat].first
@file = encodeURIComponent(params[:splat].first)
@versions = params[:versions] || []
if @versions.size < 2
redirect to("/history/#{@file}")