diff --git a/config/application.rb b/config/application.rb index 05cede3102959bf9c5a845ff6cea36625fdad4de..50501131160de6b51420c44fd226043f46f02ff9 100644 --- a/config/application.rb +++ b/config/application.rb @@ -219,7 +219,8 @@ class Application < Rails::Application /^text$/, /^title$/, /^hook$/, - /^message$/ + /^message$/, + /^(file_)?content$/i ] config.filter_parameters += %i[ certificate @@ -234,7 +235,6 @@ class Application < Rails::Application sentry_dsn trace variables - content sharedSecret redirect question diff --git a/spec/config/application_spec.rb b/spec/config/application_spec.rb index 709071ff81d29ac2251882bef4645ae476ab7459..b39269b357d6badb4ba58a5a010573210536e9b8 100644 --- a/spec/config/application_spec.rb +++ b/spec/config/application_spec.rb @@ -32,6 +32,13 @@ def request_for_url(input_url) '/?selectedText=secret' | { 'selectedText' => filtered } '/?query=secret' | { 'query' => filtered } '/?message=secret' | { 'message' => filtered } + '/?content=secret' | { 'content' => filtered } + '/?file_content=secret' | { 'file_content' => filtered } + '/?with_content=true' | { 'with_content' => 'true' } + '/?content_ref=main' | { 'content_ref' => 'main' } + '/?content_range=0-1029' | { 'content_range' => '0-1029' } + '/?glm_content[type]=type' | { 'glm_content' => { 'type' => 'type' } } + '/?Content-Type=application/json' | { 'Content-Type' => 'application/json' } end with_them do