Skip to content

Commit

Permalink
Remove deprecation warming by switching from URI::DEFAULT_PARSER to U…
Browse files Browse the repository at this point in the history
…RI::RFC2396_PARSER
  • Loading branch information
rgaufman authored and whitequark committed Dec 22, 2024
1 parent b069c9e commit 307a82c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rack/utf8_sanitizer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ def unescape_unreserved(input)
# Performs the reverse function of `unescape_unreserved`. Unlike
# the previous function, we can reuse the logic in URI#encode
def escape_unreserved(input)
URI::DEFAULT_PARSER.escape(input, UNSAFE)
URI::RFC2396_PARSER.escape(input, UNSAFE)
end

def sanitize_string(input)
Expand Down

0 comments on commit 307a82c

Please sign in to comment.