diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-12-21 20:59:35 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-12-21 20:59:35 +0000 |
commit | 94d9172634b2ace44217c80be8cd6deef50bce55 (patch) | |
tree | a72ba2c9e977d5430f1cdc535bbb7442c5ac637a /app/helpers/application_helper.rb | |
parent | 852b336f5ea99cdbd65049d1677d8824bb65215c (diff) | |
download | redmine-94d9172634b2ace44217c80be8cd6deef50bce55.tar.gz redmine-94d9172634b2ace44217c80be8cd6deef50bce55.zip |
Changed revision regexp to make source: links accept a branch.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11063 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/helpers/application_helper.rb')
-rw-r--r-- | app/helpers/application_helper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 9bc7afafd..36072e44d 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -755,7 +755,7 @@ module ApplicationHelper end else if repository && User.current.allowed_to?(:browse_repository, project) - name =~ %r{^[/\\]*(.*?)(@([0-9a-f]+))?(#(L\d+))?$} + name =~ %r{^[/\\]*(.*?)(@([^/\\@]+?))?(#(L\d+))?$} path, rev, anchor = $1, $3, $5 link = link_to h("#{project_prefix}#{prefix}:#{repo_prefix}#{name}"), {:controller => 'repositories', :action => (prefix == 'export' ? 'raw' : 'entry'), :id => project, :repository_id => repository.identifier_param, :path => to_path_param(path), |