Permalink
Browse files

[ci skip] Add some comment about downcase url encoded string.

  • Loading branch information...
kennyj committed Sep 19, 2013
1 parent 32e2388 commit 4f0f5fc8b9bdc13f0aa37012443f6ea3c03a60e0
Showing with 2 additions and 0 deletions.
  1. +2 −0 actionpack/lib/action_dispatch/journey/router/utils.rb
@@ -7,11 +7,13 @@ class Utils # :nodoc:
# 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!('/')

0 comments on commit 4f0f5fc

Please sign in to comment.