From 4f0f5fc8b9bdc13f0aa37012443f6ea3c03a60e0 Mon Sep 17 00:00:00 2001 From: kennyj Date: Thu, 19 Sep 2013 12:58:11 +0900 Subject: [ci skip] Add some comment about downcase url encoded string. --- actionpack/lib/action_dispatch/journey/router/utils.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/actionpack/lib/action_dispatch/journey/router/utils.rb b/actionpack/lib/action_dispatch/journey/router/utils.rb index 810f86db2f..1edf86cd88 100644 --- a/actionpack/lib/action_dispatch/journey/router/utils.rb +++ b/actionpack/lib/action_dispatch/journey/router/utils.rb @@ -7,11 +7,13 @@ module ActionDispatch # Normalizes URI path. # # Strips off trailing slash and ensures there is a leading slash. + # Also converts downcase url encoded string to uppercase. # # normalize_path("/foo") # => "/foo" # normalize_path("/foo/") # => "/foo" # normalize_path("foo") # => "/foo" # normalize_path("") # => "/" + # normalize_path("/%ab") # => "/%AB" def self.normalize_path(path) path = "/#{path}" path.squeeze!('/') -- cgit v1.2.3