Skip to content

Commit 25e7e09

Browse files
flecksikachu
authored andcommitted
Stop using deprecated URI.parser
1 parent ff589cc commit 25e7e09

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/action_controller/caching/actions.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ def normalize!(path)
231231
ext = URI.parser.escape(extension.to_s) if extension
232232
path << "index" if path[-1] == ?/
233233
path << ".#{ext}" if extension && !path.split("?", 2).first.ends_with?(".#{ext}")
234-
URI.parser.unescape(path)
234+
URI::DEFAULT_PARSER.unescape(path)
235235
end
236236
end
237237
end

0 commit comments

Comments
 (0)