Skip to content

Commit

Permalink
Merge pull request #2760 from ollym/patch-1
Browse files Browse the repository at this point in the history
Use RFC2396_REGEXP explicitly
  • Loading branch information
mshibuya authored Nov 9, 2024
2 parents a5518d6 + 05fa71f commit 8485fee
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 8485fee

Please sign in to comment.