From b3d8d82a3c189480dd7d4401f94b5fc5440d7e04 Mon Sep 17 00:00:00 2001 From: Sebastian Serth Date: Tue, 4 Oct 2022 14:49:03 +0200 Subject: [PATCH] Fix file regex in routes, once again. * We take everything after the well-known path as a filename, and hence allow everything. --- config/routes.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/routes.rb b/config/routes.rb index d28acc79..30a9bd9b 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -FILENAME_REGEXP = %r{[\w \-./]+}.freeze unless Kernel.const_defined?(:FILENAME_REGEXP) +FILENAME_REGEXP = /.+/.freeze unless Kernel.const_defined?(:FILENAME_REGEXP) Rails.application.routes.draw do resources :community_solutions, only: %i[index edit update]