From 2b675c6f84030618dbdf888264647d675fc76024 Mon Sep 17 00:00:00 2001 From: "konstantin.grabar" Date: Mon, 20 Feb 2012 13:56:09 +0400 Subject: [PATCH] [refs #193] Fix routes regex for wiki compare --- config/routes.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/config/routes.rb b/config/routes.rb index 5c41fec18..85c55624c 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -101,7 +101,8 @@ Rosa::Application.routes.draw do match '_access' => 'wiki#git', :as => :git, :via => :get match '_revert/:sha1/:sha2' => 'wiki#revert_wiki', :as => :revert, :via => [:get, :post] match '_compare' => 'wiki#compare_wiki', :as => :compare, :via => :post - match '_compare/:versions' => 'wiki#compare_wiki', :versions => /.*/, :as => :compare_versions, :via => :get + #match '_compare/:versions' => 'wiki#compare_wiki', :versions => /.*/, :as => :compare_versions, :via => :get + match '_compare/:versions' => 'wiki#compare_wiki', :versions => /([a-f0-9\^]{6,40})(\.\.\.[a-f0-9\^]{6,40})/, :as => :compare_versions, :via => :get post :preview get :search get :pages