Skip to content

Commit

Permalink
Flip the expression from blacklist to whitelist
Browse files Browse the repository at this point in the history
  • Loading branch information
c960657 committed Sep 6, 2023
1 parent c6c2739 commit 508adcc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/http/uri.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class URI
HTTPS_SCHEME = "https"

# @private
PERCENT_ENCODE = /[\x00-\x20\u007F-\u{1FFFF}]+/.freeze
PERCENT_ENCODE = /[^\x21-\x7E]+/.freeze

# @private
NORMALIZER = lambda do |uri|
Expand Down

0 comments on commit 508adcc

Please sign in to comment.