Fix file regex in routes, once again.

* We take everything after the well-known path as a filename, and hence allow everything.
This commit is contained in:
Sebastian Serth
2022-10-04 14:49:03 +02:00
parent 42a7bf9983
commit b3d8d82a3c

View File

@ -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]