debian-mirror-gitlab/lib/gitlab/patch/uri.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
272 B
Ruby
Raw Normal View History

2022-11-25 23:54:43 +05:30
# 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