-
Notifications
You must be signed in to change notification settings - Fork 73
THREESCALE-15550: Upgrade uri gem #4356
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from 1 commit
09fa2ae
361e3b9
46b5aff
47252e4
4cb28f4
8641c06
4d98455
9f32039
b216d16
5b5bc85
794a67c
493a7cf
3dd8111
4b7f655
6400cf4
99b10e6
e47b127
f720960
2ed9e4c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -29,7 +29,7 @@ class Proxy < ApplicationRecord # rubocop:disable Metrics/ClassLength | |
|
|
||
| validates :error_status_no_match, :error_status_auth_missing, :error_status_auth_failed, :error_status_limits_exceeded, presence: true | ||
|
|
||
| uri_pattern = URI::DEFAULT_PARSER.pattern | ||
| uri_pattern = URI::RFC2396_PARSER.pattern | ||
|
|
||
| URI_OR_LOCALHOST = /\A(https?:\/\/([a-zA-Z0-9._:\/?-])+|.*localhost.*)\Z/ | ||
| OPTIONAL_QUERY_FORMAT = "(?:\\?(#{uri_pattern.fetch(:QUERY)}))?" | ||
|
|
@@ -675,7 +675,7 @@ def call(attribute) | |
|
|
||
| begin | ||
| uri = URI.parse(attribute_value) | ||
| value = URI::Generic.new(uri.scheme, uri.userinfo, uri.host, uri.port, uri.registry, uri.path, uri.opaque, uri.query, uri.fragment).to_s | ||
| value = URI::Generic.new(uri.scheme, uri.userinfo, uri.host, uri.port, nil, uri.path, uri.opaque, uri.query, uri.fragment).to_s | ||
|
qltysh[bot] marked this conversation as resolved.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Found 8 issues: |
||
| @model[attribute] = value unless @model[attribute] == value | ||
| rescue URI::InvalidURIError | ||
| @model.errors.add(attribute, 'Invalid domain') | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.