From 05fa71fcfbee8159633ecd1578e651edec484945 Mon Sep 17 00:00:00 2001 From: Oliver Morgan Date: Thu, 7 Nov 2024 11:04:51 +0000 Subject: [PATCH] Use RFC2396_REGEXP explicitly Because uri > 1.0 switched to RFC3986 as the default parser --- lib/carrierwave/utilities/uri.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/carrierwave/utilities/uri.rb b/lib/carrierwave/utilities/uri.rb index 81b7bc6bd..2593d4c55 100644 --- a/lib/carrierwave/utilities/uri.rb +++ b/lib/carrierwave/utilities/uri.rb @@ -4,7 +4,7 @@ module CarrierWave module Utilities module Uri # based on Ruby < 2.0's URI.encode - PATH_SAFE = URI::REGEXP::PATTERN::UNRESERVED + '\/' + PATH_SAFE = URI::RFC2396_REGEXP::PATTERN::UNRESERVED + '\/' PATH_UNSAFE = Regexp.new("[^#{PATH_SAFE}]", false) NON_ASCII = /[^[:ascii:]]/.freeze