Upgrade to Crystal v0.30.0 (#548)

This commit is contained in:
Brian J. Cardiff 2019-08-03 13:35:40 -03:00 committed by Serdar Dogruyol
parent 6e2714404d
commit 17bf1c7709
2 changed files with 2 additions and 2 deletions

View file

@ -24,7 +24,7 @@ module Kemal
end
private def unescape_url_param(value : String)
value.empty? ? value : URI.unescape(value)
value.empty? ? value : URI.decode(value)
rescue
value
end

View file

@ -21,7 +21,7 @@ module Kemal
config = Kemal.config.serve_static
original_path = context.request.path.not_nil!
request_path = URI.unescape(original_path)
request_path = URI.decode(original_path)
# File path cannot contains '\0' (NUL) because all filesystem I know
# don't accept '\0' character as file name.