summaryrefslogtreecommitdiff
path: root/app/models/remote_mirror.rb
diff options
context:
space:
mode:
authorJohn Jarvis <jarv@gitlab.com>2018-12-27 08:30:25 +0000
committerJohn Jarvis <jarv@gitlab.com>2018-12-27 08:30:25 +0000
commit1522ffd7d8c3a15f53b2a24cadae20da84eb060e (patch)
treeac4473b5b4cf52747c88977d269197d55a108a74 /app/models/remote_mirror.rb
parentaba4b6afbedb5c7f0fa8d742b090d1471f1739b7 (diff)
parentb52f3d235b7f9617f65c398b4085cbea1982c1f3 (diff)
downloadgitlab-ce-1522ffd7d8c3a15f53b2a24cadae20da84eb060e.tar.gz
Merge branch 'security-11-6-fix-ssrf-import-url-remote-mirror' into 'security-11-6'
[11.6] SSRF - Scan Internal Ports and GCP/AWS endpoints See merge request gitlab/gitlabhq!2708
Diffstat (limited to 'app/models/remote_mirror.rb')
-rw-r--r--app/models/remote_mirror.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/remote_mirror.rb b/app/models/remote_mirror.rb
index b7b4d0f1be9..327c6e7c7a3 100644
--- a/app/models/remote_mirror.rb
+++ b/app/models/remote_mirror.rb
@@ -17,7 +17,7 @@ class RemoteMirror < ActiveRecord::Base
belongs_to :project, inverse_of: :remote_mirrors
- validates :url, presence: true, url: { protocols: %w(ssh git http https), allow_blank: true, enforce_user: true }
+ validates :url, presence: true, public_url: { protocols: %w(ssh git http https), allow_blank: true, enforce_user: true }
before_save :set_new_remote_name, if: :mirror_url_changed?