mirror of
https://gitea.invidious.io/iv-org/shard-kemal.git
synced 2024-08-15 00:53:36 +00:00
no need to return next handler, return 404
This commit is contained in:
parent
b86d761242
commit
64c8571535
1 changed files with 1 additions and 1 deletions
|
@ -42,7 +42,7 @@ module Kemal
|
||||||
|
|
||||||
# prevent symlinks out of the public dir
|
# prevent symlinks out of the public dir
|
||||||
if File.symlink?(file_path) && !File.real_path(file_path).starts_with?(@public_dir)
|
if File.symlink?(file_path) && !File.real_path(file_path).starts_with?(@public_dir)
|
||||||
call_next(context)
|
context.response.status_code = 404
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue