Welcome to mirror list, hosted at ThFree Co, Russian Federation.

uri.rb « patch « gitlab « lib - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: b3a34b5a68ebc4dc131ecd2a6b6964baad1c728d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# frozen_string_literal: true

module Gitlab
  module Patch
    module Uri
      module ClassMethods
        def parse(uri)
          raise URI::InvalidURIError, "URI is too long" if uri && uri.to_s.length > 15_000

          super
        end
      end
    end
  end
end