Upgrade to Crystal v0.30.0 (#548)
This commit is contained in:
parent
6e2714404d
commit
17bf1c7709
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue