From 307a82c7280ddfc1e546f06ade4bedd02eb6ba80 Mon Sep 17 00:00:00 2001 From: Roman Gaufman Date: Sun, 22 Dec 2024 00:02:37 +0000 Subject: [PATCH] Remove deprecation warming by switching from URI::DEFAULT_PARSER to URI::RFC2396_PARSER --- lib/rack/utf8_sanitizer.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rack/utf8_sanitizer.rb b/lib/rack/utf8_sanitizer.rb index 7486b13..7d631e9 100644 --- a/lib/rack/utf8_sanitizer.rb +++ b/lib/rack/utf8_sanitizer.rb @@ -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)