mirror of
https://gitea.invidious.io/iv-org/shard-kemal.git
synced 2024-08-15 00:53:36 +00:00
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
|
end
|
||||||
|
|
||||||
private def unescape_url_param(value : String)
|
private def unescape_url_param(value : String)
|
||||||
value.empty? ? value : URI.unescape(value)
|
value.empty? ? value : URI.decode(value)
|
||||||
rescue
|
rescue
|
||||||
value
|
value
|
||||||
end
|
end
|
||||||
|
|
|
@ -21,7 +21,7 @@ module Kemal
|
||||||
|
|
||||||
config = Kemal.config.serve_static
|
config = Kemal.config.serve_static
|
||||||
original_path = context.request.path.not_nil!
|
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
|
# File path cannot contains '\0' (NUL) because all filesystem I know
|
||||||
# don't accept '\0' character as file name.
|
# don't accept '\0' character as file name.
|
||||||
|
|
Loading…
Reference in a new issue