bugsnag 6.21.0 → 6.25.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.yardopts +1 -0
- data/CHANGELOG.md +137 -0
- data/VERSION +1 -1
- data/bugsnag.gemspec +18 -1
- data/lib/bugsnag/breadcrumb_type.rb +14 -0
- data/lib/bugsnag/breadcrumbs/breadcrumb.rb +34 -1
- data/lib/bugsnag/breadcrumbs/breadcrumbs.rb +1 -0
- data/lib/bugsnag/breadcrumbs/on_breadcrumb_callback_list.rb +50 -0
- data/lib/bugsnag/cleaner.rb +31 -18
- data/lib/bugsnag/configuration.rb +240 -22
- data/lib/bugsnag/delivery/synchronous.rb +2 -2
- data/lib/bugsnag/delivery/thread_queue.rb +2 -2
- data/lib/bugsnag/endpoint_configuration.rb +11 -0
- data/lib/bugsnag/endpoint_validator.rb +80 -0
- data/lib/bugsnag/error.rb +25 -0
- data/lib/bugsnag/event.rb +7 -0
- data/lib/bugsnag/feature_flag.rb +74 -0
- data/lib/bugsnag/integrations/rack.rb +3 -3
- data/lib/bugsnag/integrations/rails/active_job.rb +102 -0
- data/lib/bugsnag/integrations/railtie.rb +36 -3
- data/lib/bugsnag/integrations/resque.rb +17 -3
- data/lib/bugsnag/middleware/active_job.rb +18 -0
- data/lib/bugsnag/middleware/delayed_job.rb +21 -2
- data/lib/bugsnag/middleware/exception_meta_data.rb +2 -0
- data/lib/bugsnag/middleware/rack_request.rb +84 -19
- data/lib/bugsnag/middleware/rails3_request.rb +2 -2
- data/lib/bugsnag/middleware/rake.rb +1 -1
- data/lib/bugsnag/middleware/session_data.rb +3 -1
- data/lib/bugsnag/middleware/sidekiq.rb +1 -1
- data/lib/bugsnag/middleware/suggestion_data.rb +9 -7
- data/lib/bugsnag/report.rb +204 -8
- data/lib/bugsnag/session_tracker.rb +52 -12
- data/lib/bugsnag/stacktrace.rb +13 -2
- data/lib/bugsnag/tasks/bugsnag.rake +1 -1
- data/lib/bugsnag/utility/duplicator.rb +124 -0
- data/lib/bugsnag/utility/feature_data_store.rb +41 -0
- data/lib/bugsnag/utility/feature_flag_delegate.rb +89 -0
- data/lib/bugsnag/utility/metadata_delegate.rb +102 -0
- data/lib/bugsnag.rb +143 -5
- metadata +24 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: aaf03034e890d858ef861781182304c7d516010334bed5182b410458607fcf0d
|
4
|
+
data.tar.gz: 23ada354b2793d02a1126b77275275c9a3f9b0341bf61d0d4d9ab11266f2b6e7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f024eb3c13ff33ecfb3427ffefa87c9fa8b6ad9093dddf9f92499059705632213b07c8754d450c5f22335b60e5bedbc4ced33706864e14b205cea86a73101d57
|
7
|
+
data.tar.gz: 2957a235190a7fb6f22453d26d170bce1006dd800cb2731ae0865ca52b818740af62ace9a3ba53671cfe3c8643072ceb6a35b0f402ce21fb36efca4b405e8e59
|
data/.yardopts
CHANGED
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,143 @@
|
|
1
1
|
Changelog
|
2
2
|
=========
|
3
3
|
|
4
|
+
## v6.25.2 (7 February 2023)
|
5
|
+
|
6
|
+
### Enhancements
|
7
|
+
|
8
|
+
* Improve performance of `Bugsnag.notify`
|
9
|
+
| [#774](https://github.com/bugsnag/bugsnag-ruby/pull/774)
|
10
|
+
| [sambostock](https://github.com/sambostock)
|
11
|
+
|
12
|
+
## v6.25.1 (5 January 2023)
|
13
|
+
|
14
|
+
### Fixes
|
15
|
+
|
16
|
+
* Allow Gem paths to be stripped from file names in stacktraces when they contain a Regexp special character
|
17
|
+
| [#764](https://github.com/bugsnag/bugsnag-ruby/pull/764)
|
18
|
+
|
19
|
+
### Enhancements
|
20
|
+
|
21
|
+
* Use `Exception#detailed_message` instead of `Exception#message` when available
|
22
|
+
| [#761](https://github.com/bugsnag/bugsnag-ruby/pull/761)
|
23
|
+
|
24
|
+
## v6.25.0 (1 December 2022)
|
25
|
+
|
26
|
+
### Enhancements
|
27
|
+
|
28
|
+
* Add support for feature flags & experiments. For more information, please see https://docs.bugsnag.com/product/features-experiments
|
29
|
+
| [#758](https://github.com/bugsnag/bugsnag-ruby/pull/758)
|
30
|
+
|
31
|
+
## v6.24.2 (21 January 2022)
|
32
|
+
|
33
|
+
### Fixes
|
34
|
+
|
35
|
+
* Avoid rescuing from errors in Active Record transaction callbacks in versions of Rails where they will be re-raised
|
36
|
+
| [#709](https://github.com/bugsnag/bugsnag-ruby/pull/709)
|
37
|
+
| [apalmblad](https://github.com/apalmblad)
|
38
|
+
|
39
|
+
## v6.24.1 (30 November 2021)
|
40
|
+
|
41
|
+
### Fixes
|
42
|
+
|
43
|
+
* Fix metadata not being recorded when using Resque outside of Active Job
|
44
|
+
| [#710](https://github.com/bugsnag/bugsnag-ruby/pull/710)
|
45
|
+
| [isnotajoke](https://github.com/isnotajoke)
|
46
|
+
|
47
|
+
## v6.24.0 (6 October 2021)
|
48
|
+
|
49
|
+
### Enhancements
|
50
|
+
|
51
|
+
* Allow overriding an event's unhandled flag
|
52
|
+
| [#698](https://github.com/bugsnag/bugsnag-ruby/pull/698)
|
53
|
+
* Add the ability to store metadata globally
|
54
|
+
| [#699](https://github.com/bugsnag/bugsnag-ruby/pull/699)
|
55
|
+
* Add `cookies`, `body` and `httpVersion` to the automatically captured request data for Rack apps
|
56
|
+
| [#700](https://github.com/bugsnag/bugsnag-ruby/pull/700)
|
57
|
+
* Add `Configuration#endpoints` for reading the notify and sessions endpoints and `Configuration#endpoints=` for setting them
|
58
|
+
| [#701](https://github.com/bugsnag/bugsnag-ruby/pull/701)
|
59
|
+
* Add `Configuration#redacted_keys`. This is like `meta_data_filters` but matches strings with case-insensitive equality, rather than matching based on inclusion
|
60
|
+
| [#703](https://github.com/bugsnag/bugsnag-ruby/pull/703)
|
61
|
+
* Allow pausing and resuming sessions, giving more control over the stability score
|
62
|
+
| [#704](https://github.com/bugsnag/bugsnag-ruby/pull/704)
|
63
|
+
* Add `Configuration#vendor_paths` to replace `Configuration#vendor_path`
|
64
|
+
| [#705](https://github.com/bugsnag/bugsnag-ruby/pull/705)
|
65
|
+
|
66
|
+
### Deprecated
|
67
|
+
|
68
|
+
* In the next major release, `params` will only contain query string parameters. Currently it also contains the request body for form data requests, but this is deprecated in favour of the new `body` property
|
69
|
+
* The `Configuration#set_endpoints` method is now deprecated in favour of `Configuration#endpoints=`
|
70
|
+
* The `Configuration#meta_data_filters` option is now deprecated in favour of `Configuration#redacted_keys`
|
71
|
+
* The `Configuration#vendor_path` option is now deprecated in favour of `Configuration#vendor_paths`
|
72
|
+
|
73
|
+
## v6.23.0 (21 September 2021)
|
74
|
+
|
75
|
+
### Enhancements
|
76
|
+
|
77
|
+
* Sessions will now be delivered every 10 seconds, instead of every 30 seconds
|
78
|
+
| [#680](https://github.com/bugsnag/bugsnag-ruby/pull/680)
|
79
|
+
* Log errors that prevent delivery at `ERROR` level
|
80
|
+
| [#681](https://github.com/bugsnag/bugsnag-ruby/pull/681)
|
81
|
+
* Add `on_breadcrumb` callbacks to replace `before_breadcrumb_callbacks`
|
82
|
+
| [#686](https://github.com/bugsnag/bugsnag-ruby/pull/686)
|
83
|
+
* Add `context` attribute to configuration, which will be used as the default context for events. Using this option will disable automatic context setting
|
84
|
+
| [#687](https://github.com/bugsnag/bugsnag-ruby/pull/687)
|
85
|
+
| [#688](https://github.com/bugsnag/bugsnag-ruby/pull/688)
|
86
|
+
* Add `Bugsnag#breadcrumbs` getter to fetch the current list of breadcrumbs
|
87
|
+
| [#689](https://github.com/bugsnag/bugsnag-ruby/pull/689)
|
88
|
+
* Add `time` (an ISO8601 string in UTC) to `device` metadata
|
89
|
+
| [#690](https://github.com/bugsnag/bugsnag-ruby/pull/690)
|
90
|
+
* Add `errors` to `Report`/`Event` containing an array of `Error` objects. The `Error` object contains `error_class`, `error_message`, `stacktrace` and `type` (always "ruby")
|
91
|
+
| [#691](https://github.com/bugsnag/bugsnag-ruby/pull/691)
|
92
|
+
* Add `original_error` to `Report`/`Event` containing the original Exception instance
|
93
|
+
| [#692](https://github.com/bugsnag/bugsnag-ruby/pull/692)
|
94
|
+
* Add `request` to `Report`/`Event` containing HTTP request metadata
|
95
|
+
| [#693](https://github.com/bugsnag/bugsnag-ruby/pull/693)
|
96
|
+
* Add `add_metadata` and `clear_metadata` to `Report`/`Event`
|
97
|
+
| [#694](https://github.com/bugsnag/bugsnag-ruby/pull/694)
|
98
|
+
* Add `set_user` to `Report`/`Event`
|
99
|
+
| [#695](https://github.com/bugsnag/bugsnag-ruby/pull/695)
|
100
|
+
|
101
|
+
### Fixes
|
102
|
+
|
103
|
+
* Avoid starting session delivery thread when the current release stage is not enabled
|
104
|
+
| [#677](https://github.com/bugsnag/bugsnag-ruby/pull/677)
|
105
|
+
|
106
|
+
### Deprecated
|
107
|
+
|
108
|
+
* `before_breadcrumb_callbacks` have been deprecated in favour of `on_breadcrumb` callbacks and will be removed in the next major release
|
109
|
+
* For consistency with Bugsnag notifiers for other languages, a number of methods have been deprecated in this release. The old options will be removed in the next major version | [#676](https://github.com/bugsnag/bugsnag-ruby/pull/676)
|
110
|
+
* The `notify_release_stages` configuration option has been deprecated in favour of `enabled_release_stages`
|
111
|
+
* The `auto_capture_sessions` and `track_sessions` configuration options have been deprecated in favour of `auto_track_sessions`
|
112
|
+
* The `enabled_automatic_breadcrumb_types` configuration option has been deprecated in favour of `enabled_breadcrumb_types`
|
113
|
+
* The `Report` class has been deprecated in favour of the `Event` class
|
114
|
+
* The `Report#meta_data` attribute has been deprecated in favour of `Event#metadata`
|
115
|
+
* The `Breadcrumb#meta_data` attribute has been deprecated in favour of `Breadcrumb#metadata`
|
116
|
+
* The `Breadcrumb#name` attribute has been deprecated in favour of `Breadcrumb#message`
|
117
|
+
* The breadcrumb type constants in the `Bugsnag::Breadcrumbs` module has been deprecated in favour of the constants available in the `Bugsnag::BreadcrumbType` module
|
118
|
+
For example, `Bugsnag::Breadcrumbs::ERROR_BREADCRUMB_TYPE` is now available as `Bugsnag::BreadcrumbType::ERROR`
|
119
|
+
* `Report#exceptions` has been deprecated in favour of the new `errors` property
|
120
|
+
* `Report#raw_exceptions` has been deprecated in favour of the new `original_error` property
|
121
|
+
* Accessing request data via `Report#metadata` has been deprecated in favour of using the new `request` property. Request data will be moved out of metadata in the next major version
|
122
|
+
* The `Report#add_tab` and `Report#remove_tab` methods have been deprecated in favour of the new `add_metadata` and `clear_metadata` methods
|
123
|
+
|
124
|
+
## v6.22.1 (11 August 2021)
|
125
|
+
|
126
|
+
### Fixes
|
127
|
+
|
128
|
+
* Fix possible `LocalJumpError` introduced in v6.22.0
|
129
|
+
| [#675](https://github.com/bugsnag/bugsnag-ruby/pull/675)
|
130
|
+
|
131
|
+
## v6.22.0 (10 August 2021)
|
132
|
+
|
133
|
+
### Enhancements
|
134
|
+
|
135
|
+
* Add support for tracking exceptions and capturing metadata in Active Job, when not using an existing integration
|
136
|
+
| [#670](https://github.com/bugsnag/bugsnag-ruby/pull/670)
|
137
|
+
|
138
|
+
* Improve the report context when using Delayed Job or Resque as the Active Job queue adapter
|
139
|
+
| [#671](https://github.com/bugsnag/bugsnag-ruby/pull/671)
|
140
|
+
|
4
141
|
## v6.21.0 (23 June 2021)
|
5
142
|
|
6
143
|
### Enhancements
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
6.
|
1
|
+
6.25.2
|
data/bugsnag.gemspec
CHANGED
@@ -18,5 +18,22 @@ Gem::Specification.new do |s|
|
|
18
18
|
]
|
19
19
|
s.require_paths = ["lib"]
|
20
20
|
s.required_ruby_version = '>= 1.9.2'
|
21
|
-
|
21
|
+
|
22
|
+
ruby_version = Gem::Version.new(RUBY_VERSION.dup)
|
23
|
+
|
24
|
+
if ruby_version < Gem::Version.new('2.2.0')
|
25
|
+
# concurrent-ruby 1.1.10 requires Ruby 2.2+
|
26
|
+
s.add_runtime_dependency 'concurrent-ruby', '~> 1.0', '< 1.1.10'
|
27
|
+
else
|
28
|
+
s.add_runtime_dependency 'concurrent-ruby', '~> 1.0'
|
29
|
+
end
|
30
|
+
|
31
|
+
if s.respond_to?(:metadata=)
|
32
|
+
s.metadata = {
|
33
|
+
"changelog_uri" => "https://github.com/bugsnag/bugsnag-ruby/blob/HEAD/CHANGELOG.md",
|
34
|
+
"documentation_uri" => "https://docs.bugsnag.com/platforms/ruby/",
|
35
|
+
"source_code_uri" => "https://github.com/bugsnag/bugsnag-ruby/",
|
36
|
+
"rubygems_mfa_required" => "true"
|
37
|
+
}
|
38
|
+
end
|
22
39
|
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
require "bugsnag/breadcrumbs/breadcrumbs"
|
2
|
+
|
3
|
+
module Bugsnag
|
4
|
+
module BreadcrumbType
|
5
|
+
ERROR = Bugsnag::Breadcrumbs::ERROR_BREADCRUMB_TYPE
|
6
|
+
LOG = Bugsnag::Breadcrumbs::LOG_BREADCRUMB_TYPE
|
7
|
+
MANUAL = Bugsnag::Breadcrumbs::MANUAL_BREADCRUMB_TYPE
|
8
|
+
NAVIGATION = Bugsnag::Breadcrumbs::NAVIGATION_BREADCRUMB_TYPE
|
9
|
+
PROCESS = Bugsnag::Breadcrumbs::PROCESS_BREADCRUMB_TYPE
|
10
|
+
REQUEST = Bugsnag::Breadcrumbs::REQUEST_BREADCRUMB_TYPE
|
11
|
+
STATE = Bugsnag::Breadcrumbs::STATE_BREADCRUMB_TYPE
|
12
|
+
USER = Bugsnag::Breadcrumbs::USER_BREADCRUMB_TYPE
|
13
|
+
end
|
14
|
+
end
|
@@ -1,11 +1,13 @@
|
|
1
1
|
module Bugsnag::Breadcrumbs
|
2
2
|
class Breadcrumb
|
3
|
+
# @deprecated Use {#message} instead
|
3
4
|
# @return [String] the breadcrumb name
|
4
5
|
attr_accessor :name
|
5
6
|
|
6
7
|
# @return [String] the breadcrumb type
|
7
8
|
attr_accessor :type
|
8
9
|
|
10
|
+
# @deprecated Use {#metadata} instead
|
9
11
|
# @return [Hash, nil] metadata hash containing strings, numbers, or booleans, or nil
|
10
12
|
attr_accessor :meta_data
|
11
13
|
|
@@ -23,7 +25,7 @@ module Bugsnag::Breadcrumbs
|
|
23
25
|
# @api private
|
24
26
|
#
|
25
27
|
# @param name [String] the breadcrumb name
|
26
|
-
# @param type [String] the breadcrumb type from Bugsnag::
|
28
|
+
# @param type [String] the breadcrumb type from Bugsnag::BreadcrumbType
|
27
29
|
# @param meta_data [Hash, nil] a hash containing strings, numbers, or booleans, or nil
|
28
30
|
# @param auto [Symbol] set to `:auto` if the breadcrumb is automatically generated
|
29
31
|
def initialize(name, type, meta_data, auto)
|
@@ -72,5 +74,36 @@ module Bugsnag::Breadcrumbs
|
|
72
74
|
:timestamp => @timestamp.iso8601(3)
|
73
75
|
}
|
74
76
|
end
|
77
|
+
|
78
|
+
# TODO: "message" and "metadata" can be simple attr_accessors when they
|
79
|
+
# replace "name" and "meta_data"
|
80
|
+
# NOTE: these are not aliases as YARD doesn't allow documenting the non-alias
|
81
|
+
# as deprecated without also marking the alias as deprecated
|
82
|
+
|
83
|
+
# The breadcrumb message
|
84
|
+
# @!attribute message
|
85
|
+
# @return [String]
|
86
|
+
def message
|
87
|
+
@name
|
88
|
+
end
|
89
|
+
|
90
|
+
# @param message [String]
|
91
|
+
# @return [void]
|
92
|
+
def message=(message)
|
93
|
+
@name = message
|
94
|
+
end
|
95
|
+
|
96
|
+
# A Hash containing arbitrary metadata associated with this breadcrumb
|
97
|
+
# @!attribute metadata
|
98
|
+
# @return [Hash, nil]
|
99
|
+
def metadata
|
100
|
+
@meta_data
|
101
|
+
end
|
102
|
+
|
103
|
+
# @param metadata [Hash, nil]
|
104
|
+
# @return [void]
|
105
|
+
def metadata=(metadata)
|
106
|
+
@meta_data = metadata
|
107
|
+
end
|
75
108
|
end
|
76
109
|
end
|
@@ -0,0 +1,50 @@
|
|
1
|
+
require "set"
|
2
|
+
|
3
|
+
module Bugsnag::Breadcrumbs
|
4
|
+
class OnBreadcrumbCallbackList
|
5
|
+
def initialize(configuration)
|
6
|
+
@callbacks = Set.new
|
7
|
+
@mutex = Mutex.new
|
8
|
+
@configuration = configuration
|
9
|
+
end
|
10
|
+
|
11
|
+
##
|
12
|
+
# @param callback [Proc, Method, #call]
|
13
|
+
# @return [void]
|
14
|
+
def add(callback)
|
15
|
+
@mutex.synchronize do
|
16
|
+
@callbacks.add(callback)
|
17
|
+
end
|
18
|
+
end
|
19
|
+
|
20
|
+
##
|
21
|
+
# @param callback [Proc, Method, #call]
|
22
|
+
# @return [void]
|
23
|
+
def remove(callback)
|
24
|
+
@mutex.synchronize do
|
25
|
+
@callbacks.delete(callback)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
|
29
|
+
##
|
30
|
+
# @param breadcrumb [Breadcrumb]
|
31
|
+
# @return [void]
|
32
|
+
def call(breadcrumb)
|
33
|
+
@callbacks.each do |callback|
|
34
|
+
begin
|
35
|
+
should_continue = callback.call(breadcrumb)
|
36
|
+
rescue StandardError => e
|
37
|
+
@configuration.warn("Error occurred in on_breadcrumb callback: '#{e}'")
|
38
|
+
@configuration.warn("on_breadcrumb callback stacktrace: #{e.backtrace.inspect}")
|
39
|
+
end
|
40
|
+
|
41
|
+
# only stop if should_continue is explicity 'false' to allow callbacks
|
42
|
+
# to return 'nil'
|
43
|
+
if should_continue == false
|
44
|
+
breadcrumb.ignore!
|
45
|
+
break
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
data/lib/bugsnag/cleaner.rb
CHANGED
@@ -25,7 +25,7 @@ module Bugsnag
|
|
25
25
|
# @param url [String]
|
26
26
|
# @return [String]
|
27
27
|
def clean_url(url)
|
28
|
-
return url if @configuration.meta_data_filters.empty?
|
28
|
+
return url if @configuration.meta_data_filters.empty? && @configuration.redacted_keys.empty?
|
29
29
|
|
30
30
|
uri = URI(url)
|
31
31
|
return url unless uri.query
|
@@ -43,6 +43,33 @@ module Bugsnag
|
|
43
43
|
uri.to_s
|
44
44
|
end
|
45
45
|
|
46
|
+
##
|
47
|
+
# @param key [String, #to_s]
|
48
|
+
# @return [Boolean]
|
49
|
+
def filters_match?(key)
|
50
|
+
str = key.to_s
|
51
|
+
|
52
|
+
matched = @configuration.meta_data_filters.any? do |filter|
|
53
|
+
case filter
|
54
|
+
when Regexp
|
55
|
+
str.match(filter)
|
56
|
+
else
|
57
|
+
str.include?(filter.to_s)
|
58
|
+
end
|
59
|
+
end
|
60
|
+
|
61
|
+
return true if matched
|
62
|
+
|
63
|
+
@configuration.redacted_keys.any? do |redaction_pattern|
|
64
|
+
case redaction_pattern
|
65
|
+
when Regexp
|
66
|
+
str.match(redaction_pattern)
|
67
|
+
when String
|
68
|
+
str.downcase == redaction_pattern.downcase
|
69
|
+
end
|
70
|
+
end
|
71
|
+
end
|
72
|
+
|
46
73
|
private
|
47
74
|
|
48
75
|
##
|
@@ -54,9 +81,11 @@ module Bugsnag
|
|
54
81
|
#
|
55
82
|
# @return [Boolean]
|
56
83
|
def deep_filters?
|
57
|
-
|
84
|
+
is_deep_filter = proc do |filter|
|
58
85
|
filter.is_a?(Regexp) && filter.to_s.include?("\\.".freeze)
|
59
86
|
end
|
87
|
+
|
88
|
+
@configuration.meta_data_filters.any?(&is_deep_filter) || @configuration.redacted_keys.any?(&is_deep_filter)
|
60
89
|
end
|
61
90
|
|
62
91
|
def clean_string(str)
|
@@ -137,22 +166,6 @@ module Bugsnag
|
|
137
166
|
value
|
138
167
|
end
|
139
168
|
|
140
|
-
##
|
141
|
-
# @param key [String, #to_s]
|
142
|
-
# @return [Boolean]
|
143
|
-
def filters_match?(key)
|
144
|
-
str = key.to_s
|
145
|
-
|
146
|
-
@configuration.meta_data_filters.any? do |filter|
|
147
|
-
case filter
|
148
|
-
when Regexp
|
149
|
-
str.match(filter)
|
150
|
-
else
|
151
|
-
str.include?(filter.to_s)
|
152
|
-
end
|
153
|
-
end
|
154
|
-
end
|
155
|
-
|
156
169
|
##
|
157
170
|
# If someone has a Rails filter like /^stuff\.secret/, it won't match
|
158
171
|
# "request.params.stuff.secret", so we try it both with and without the
|