diff options
author | Stefan Giehl <stefan@matomo.org> | 2019-07-05 16:33:07 +0300 |
---|---|---|
committer | Thomas Steur <tsteur@users.noreply.github.com> | 2019-07-05 16:33:07 +0300 |
commit | 7147fc3e880d033a9f5551634e777e5c7a1467bb (patch) | |
tree | 520498a5224d6c3ee8e34363b5aec63784aa1a07 /core | |
parent | 2050e194ca8d9c9595fbe2af73f54124135c4cbd (diff) |
try to improve speed of serving unreadable files (#14605)
Diffstat (limited to 'core')
-rw-r--r-- | core/ProxyHttp.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/core/ProxyHttp.php b/core/ProxyHttp.php index b8d9987785..189133df95 100644 --- a/core/ProxyHttp.php +++ b/core/ProxyHttp.php @@ -73,6 +73,11 @@ class ProxyHttp return; } + if (!is_readable($file)) { + Common::sendResponseCode(500); + return; + } + $modifiedSince = Http::getModifiedSinceHeader(); $fileModifiedTime = @filemtime($file); |