1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-09-19 16:01:34 +02:00

Hide /logo/ 404s for ninja install

This commit is contained in:
Hillel Coren 2017-03-21 11:18:36 +02:00
parent ca6a28e817
commit 6a5b189912

View File

@ -54,6 +54,11 @@ class Handler extends ExceptionHandler
if (Crawler::isCrawler()) {
return false;
}
// The logo can take a few seconds to get synced between servers
// TODO: remove once we're using cloud storage for logos
if (Utils::isNinja() && strpos(request()->url(), '/logo/') !== false) {
return false;
}
} elseif ($e instanceof HttpResponseException) {
return false;
}