aboutsummaryrefslogtreecommitdiffstats
path: root/boot.php
diff options
context:
space:
mode:
authorDM42.Net Hubzilla Development <hzdev@dm42.net>2023-07-17 20:34:16 -0400
committerDM42.Net Hubzilla Development <hzdev@dm42.net>2023-07-17 20:34:16 -0400
commitba2d7752152ba061302db747780d157dfb3383d9 (patch)
tree2f6f47251dc00dfd43b87d1845ece9e0b42fb733 /boot.php
parentf86677185418ca32fcdefa825363d7a69b7b2233 (diff)
downloadvolse-hubzilla-ba2d7752152ba061302db747780d157dfb3383d9.tar.gz
volse-hubzilla-ba2d7752152ba061302db747780d157dfb3383d9.tar.bz2
volse-hubzilla-ba2d7752152ba061302db747780d157dfb3383d9.zip
Skip logging when DB functions are not yet loaded (logging requires db lookup).
Diffstat (limited to 'boot.php')
-rw-r--r--boot.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/boot.php b/boot.php
index 18addbb6f..0013ef7c7 100644
--- a/boot.php
+++ b/boot.php
@@ -949,7 +949,7 @@ class App {
$staticfilecwd = getcwd();
$staticfilerealpath = realpath(self::$cmd);
if (strpos($staticfilerealpath, $staticfilecwd) !== 0) {
- http_status_exit(404, 'not found');
+ http_status_exit(404, 'not found', 1);
}
$staticfileetag = '"' . md5($staticfilerealpath . filemtime(self::$cmd)) . '"';
@@ -959,7 +959,7 @@ class App {
// If HTTP_IF_NONE_MATCH is same as the generated ETag => content is the same as browser cache
// So send a 304 Not Modified response header and exit
if ($_SERVER['HTTP_IF_NONE_MATCH'] == $staticfileetag) {
- http_status_exit(304, 'not modified');
+ http_status_exit(304, 'not modified', 1);
}
}
header("Content-type: " . $serve_rawfiles[$filext]);