]> source.dussan.org Git - redmine.git/commitdiff
Fixes valid revision regexp.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Mon, 20 Dec 2010 18:47:54 +0000 (18:47 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Mon, 20 Dec 2010 18:47:54 +0000 (18:47 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4549 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/controllers/repositories_controller.rb

index 03fb69bd6655559bca9956773eab8887f87a267b..a71f7bf459ed182fc8f03333f1d5ed137a15a034 100644 (file)
@@ -198,7 +198,7 @@ class RepositoriesController < ApplicationController
   
   private
 
-  REV_PARAM_RE = %r{^[a-f0-9]*$}i
+  REV_PARAM_RE = %r{\A[a-f0-9]*\Z}i
 
   def find_repository
     @project = Project.find(params[:id])