Skip to content

Commit 7127c19

Browse files
committed
Remove another usage of URI.parser
1 parent 25e7e09 commit 7127c19

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
@@ -228,7 +228,7 @@ def initialize(controller, options = {}, infer_extension = true)
228228

229229
private
230230
def normalize!(path)
231-
ext = URI.parser.escape(extension.to_s) if extension
231+
ext = URI::DEFAULT_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}")
234234
URI::DEFAULT_PARSER.unescape(path)

0 commit comments

Comments
 (0)