Project

General

Profile

Defect #3278 ยป redmine-subversion-tunnel-scheme.patch

Duncan Harris, 2009-04-30 18:54

View differences:

redmine/app/helpers/repositories_helper.rb (working copy)
147 147

  
148 148
  def subversion_field_tags(form, repository)
149 149
      content_tag('p', form.text_field(:url, :size => 60, :required => true, :disabled => (repository && !repository.root_url.blank?)) +
150
                       '<br />(http://, https://, svn://, file:///)') +
150
                       '<br />(http://, https://, svn://, svn+tunnelscheme://, file:///)') +
151 151
      content_tag('p', form.text_field(:login, :size => 30)) +
152 152
      content_tag('p', form.password_field(:password, :size => 30, :name => 'ignore',
153 153
                                           :value => ((repository.new_record? || repository.password.blank?) ? '' : ('x'*15)),
redmine/app/models/repository/subversion.rb (working copy)
20 20
class Repository::Subversion < Repository
21 21
  attr_protected :root_url
22 22
  validates_presence_of :url
23
  validates_format_of :url, :with => /^(http|https|svn|svn\+ssh|file):\/\/.+/i
23
  validates_format_of :url, :with => /^(http|https|svn(\+[^\s:\/\\]+)?|file):\/\/.+/i
24 24

  
25 25
  def scm_adapter
26 26
    Redmine::Scm::Adapters::SubversionAdapter
    (1-1/1)