From fe7de6c9814f79e7ef652301cd318411ae13ad63 Mon Sep 17 00:00:00 2001 From: Alberto Vena Date: Mon, 14 Dec 2020 09:25:54 +0100 Subject: [PATCH] Remove last occurrence of whitelisted_params Even if compact, it has the same meaning. --- app/helpers/canonical_rails/tag_helper.rb | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/app/helpers/canonical_rails/tag_helper.rb b/app/helpers/canonical_rails/tag_helper.rb index 690d906..5e93b3a 100644 --- a/app/helpers/canonical_rails/tag_helper.rb +++ b/app/helpers/canonical_rails/tag_helper.rb @@ -73,10 +73,8 @@ def allowed_query_string # https://github.com/rack/rack/blob/9939d40a5e23dcb058751d1029b794aa2f551900/test/spec_utils.rb#L222 # Rack 1.6.0 has it # https://github.com/rack/rack/blob/65a7104b6b3e9ecd8f33c63a478ab9a33a103507/test/spec_utils.rb#L251 - - wl_params = allowed_params - - "?" + Rack::Utils.build_nested_query(convert_numeric_params(wl_params)) if wl_params.present? + parameters = allowed_params + "?" + Rack::Utils.build_nested_query(convert_numeric_params(parameters)) if parameters.present? end private