summaryrefslogtreecommitdiff
path: root/app/services/projects/download_service.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/services/projects/download_service.rb')
-rw-r--r--app/services/projects/download_service.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/projects/download_service.rb b/app/services/projects/download_service.rb
index aba175eb79b..9810db84605 100644
--- a/app/services/projects/download_service.rb
+++ b/app/services/projects/download_service.rb
@@ -27,7 +27,7 @@ module Projects
end
def http?(url)
- url =~ /\A#{URI.regexp(%w(http https))}\z/
+ url =~ /\A#{URI::DEFAULT_PARSER.make_regexp(%w(http https))}\z/
end
def valid_domain?(url)