From: Jean-Philippe Lang Date: Mon, 20 Dec 2010 18:47:54 +0000 (+0000) Subject: Fixes valid revision regexp. X-Git-Tag: 1.1.0~53 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=03397f605c7ece40b38ebdcf49bd5e4fe9040ac8;p=redmine.git Fixes valid revision regexp. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4549 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/app/controllers/repositories_controller.rb b/app/controllers/repositories_controller.rb index 03fb69bd6..a71f7bf45 100644 --- a/app/controllers/repositories_controller.rb +++ b/app/controllers/repositories_controller.rb @@ -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])