Class: ParamSanitizer::Strategies::StripPathStrategy
- Inherits:
-
Object
- Object
- ParamSanitizer::Strategies::StripPathStrategy
- Defined in:
- lib/param_sanitizer/strategies/strip_path_strategy.rb
Instance Method Summary collapse
Instance Method Details
#call(request) ⇒ Object
4 5 6 7 8 |
# File 'lib/param_sanitizer/strategies/strip_path_strategy.rb', line 4 def call(request) request.params.each do |key, value| request.params[key] = nil if value =~ /\\|\// end end |