Skip to content

Commit

Permalink
Use RFC2396_REGEXP explicitly
Browse files Browse the repository at this point in the history
Because uri > 1.0 switched to RFC3986 as the default parser
  • Loading branch information
ollym authored Nov 7, 2024
1 parent a5518d6 commit 05fa71f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/carrierwave/utilities/uri.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 05fa71f

Please sign in to comment.