Short circuit processing of the heartbeat request

This commit is contained in:
Robin Appelman 2016-08-30 15:44:00 +02:00
parent ef34b49e43
commit acffaa55a1
1 changed files with 3 additions and 0 deletions

View File

@ -922,6 +922,9 @@ class OC {
$request = \OC::$server->getRequest();
$requestPath = $request->getRawPathInfo();
if ($requestPath === '/heartbeat') {
return;
}
if (substr($requestPath, -3) !== '.js') { // we need these files during the upgrade
self::checkMaintenanceMode();
self::checkUpgrade();