Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorStefan Giehl <stefan@matomo.org>2019-07-05 16:33:07 +0300
committerThomas Steur <tsteur@users.noreply.github.com>2019-07-05 16:33:07 +0300
commit7147fc3e880d033a9f5551634e777e5c7a1467bb (patch)
tree520498a5224d6c3ee8e34363b5aec63784aa1a07 /core
parent2050e194ca8d9c9595fbe2af73f54124135c4cbd (diff)
try to improve speed of serving unreadable files (#14605)
Diffstat (limited to 'core')
-rw-r--r--core/ProxyHttp.php5
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);