bugsnag 6.26.1 → 6.26.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 60383f9662a63f219295a1554c0643092d201039d57ec4b93f7542761662105f
4
- data.tar.gz: 04076a3736b8ff9ee5b575b083e328429f149cd4a531f5ac062581d9472feea9
3
+ metadata.gz: 87508e2fde2b235e826dea54f9f05ee75cca5d046cd76e95a5f4d6136c1a401c
4
+ data.tar.gz: c832d4f17a80904cc9b786043d8f56bd01c495aeb00fc98a5129bd4297c96eea
5
5
  SHA512:
6
- metadata.gz: '0826f29f80c34ec5e785dff331b185498b2d2862455f5011dc6405eedfdbe23188a811ba93f8673bc79834e3a5e8c46d63d0cfa5ca541c4864ef5367ec83e034'
7
- data.tar.gz: 9a5bdf81e2ddd1b7ad7c0b2ec48463c288c9e8f55887454530c016a95a6f38f593e696af69adc558bd1a54df0f1fa104954c0d40612d70ac309c88765c6d6fb7
6
+ metadata.gz: cbe54bdc037eccae528486bd8608ea265c16718b6644c522415245fed6b003e47cff209f21a2bdd152e2270c17ba978a2d9d5f0e8f11c6ac902b503e56cec1b6
7
+ data.tar.gz: 7c5ed7ae765769c16dfa9c59892520618bfbfc31e4142ad198d0988d21f834255d7c31f8f3b3d12ae5e80fe3d9707ca93981c24981ad01dc14231161b17089fa
data/CHANGELOG.md CHANGED
@@ -1,6 +1,13 @@
1
1
  Changelog
2
2
  =========
3
3
 
4
+ ## v6.26.2 (17 January 2024)
5
+
6
+ ### Fixes
7
+
8
+ * Fix unhandled `URI::InvalidURIError` in `Cleaner#clean_url`
9
+ | [#811](https://github.com/bugsnag/bugsnag-ruby/pull/811)
10
+
4
11
  ## v6.26.1 (9 January 2024)
5
12
 
6
13
  ### Fixes
data/VERSION CHANGED
@@ -1 +1 @@
1
- 6.26.1
1
+ 6.26.2
@@ -26,8 +26,16 @@ module Bugsnag
26
26
  # @return [String]
27
27
  def clean_url(url)
28
28
  return url if @configuration.meta_data_filters.empty? && @configuration.redacted_keys.empty?
29
+ return url unless url.include?('?')
30
+
31
+ begin
32
+ uri = URI(url)
33
+ rescue URI::InvalidURIError
34
+ pre_query_string, _query_string = url.split('?', 2)
35
+
36
+ return "#{pre_query_string}?#{FILTERED}"
37
+ end
29
38
 
30
- uri = URI(url)
31
39
  return url unless uri.query
32
40
 
33
41
  query_params = uri.query.split('&').map { |pair| pair.split('=') }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bugsnag
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.26.1
4
+ version: 6.26.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Smith
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-01-09 00:00:00.000000000 Z
11
+ date: 2024-01-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: concurrent-ruby
@@ -107,7 +107,7 @@ homepage: https://github.com/bugsnag/bugsnag-ruby
107
107
  licenses:
108
108
  - MIT
109
109
  metadata:
110
- changelog_uri: https://github.com/bugsnag/bugsnag-ruby/blob/v6.26.1/CHANGELOG.md
110
+ changelog_uri: https://github.com/bugsnag/bugsnag-ruby/blob/v6.26.2/CHANGELOG.md
111
111
  documentation_uri: https://docs.bugsnag.com/platforms/ruby/
112
112
  source_code_uri: https://github.com/bugsnag/bugsnag-ruby/
113
113
  rubygems_mfa_required: 'true'