diff --git a/console.php b/console.php index 6edf10e473fca..26ad7ed7cfdd7 100644 --- a/console.php +++ b/console.php @@ -44,7 +44,7 @@ } try { - require_once 'lib/base.php'; + require_once __DIR__ . '/lib/base.php'; // set to run indefinitely if needed set_time_limit(0); diff --git a/cron.php b/cron.php index f0a23da73358d..8f1e4e2667557 100644 --- a/cron.php +++ b/cron.php @@ -33,7 +33,7 @@ try { - require_once 'lib/base.php'; + require_once __DIR__ . '/lib/base.php'; if (\OCP\Util::needUpgrade()) { \OCP\Util::writeLog('cron', 'Update required, skipping cron', \OCP\Util::DEBUG); diff --git a/index.php b/index.php index 5e1832e353eab..7e43dcfa0d4d0 100644 --- a/index.php +++ b/index.php @@ -42,8 +42,8 @@ } try { - - require_once 'lib/base.php'; + + require_once __DIR__ . '/lib/base.php'; OC::handleRequest(); diff --git a/ocs-provider/index.php b/ocs-provider/index.php index 316b39cace8ab..85b3b783ba8fe 100644 --- a/ocs-provider/index.php +++ b/ocs-provider/index.php @@ -19,8 +19,8 @@ * */ -require_once('../lib/base.php'); -require_once(__DIR__ . '/provider.php'); +require_once __DIR__ . '/../lib/base.php'; +require_once __DIR__ . '/provider.php'; header('Content-Type: application/json'); diff --git a/ocs/providers.php b/ocs/providers.php index be0aff8add221..9efca14768e89 100644 --- a/ocs/providers.php +++ b/ocs/providers.php @@ -23,7 +23,7 @@ * */ -require_once '../lib/base.php'; +require_once __DIR__ . '/../lib/base.php'; header('Content-type: application/xml'); diff --git a/ocs/v1.php b/ocs/v1.php index abe76d100ce43..e0e60d39914d5 100644 --- a/ocs/v1.php +++ b/ocs/v1.php @@ -28,7 +28,7 @@ * */ -require_once '../lib/base.php'; +require_once __DIR__ . '/../lib/base.php'; if (\OCP\Util::needUpgrade() || \OC::$server->getSystemConfig()->getValue('maintenance', false) diff --git a/ocs/v2.php b/ocs/v2.php index 45f65033056a0..dc57431e6c6bb 100644 --- a/ocs/v2.php +++ b/ocs/v2.php @@ -20,4 +20,4 @@ * */ -require_once 'v1.php'; +require_once __DIR__ . '/v1.php'; diff --git a/public.php b/public.php index ed7c172ecd568..2ef39cf414490 100644 --- a/public.php +++ b/public.php @@ -27,7 +27,7 @@ */ try { - require_once 'lib/base.php'; + require_once __DIR__ . '/lib/base.php'; if (\OCP\Util::needUpgrade()) { // since the behavior of apps or remotes are unpredictable during // an upgrade, return a 503 directly diff --git a/remote.php b/remote.php index bfc177c19e4d5..79fa7802310aa 100644 --- a/remote.php +++ b/remote.php @@ -86,7 +86,7 @@ function handleException(Exception $e) { } try { - require_once 'lib/base.php'; + require_once __DIR__ . '/lib/base.php'; if (\OCP\Util::needUpgrade()) { // since the behavior of apps or remotes are unpredictable during diff --git a/status.php b/status.php index a24bb30456e4c..7d1a50f935c41 100644 --- a/status.php +++ b/status.php @@ -29,7 +29,7 @@ try { - require_once 'lib/base.php'; + require_once __DIR__ . '/lib/base.php'; $systemConfig = \OC::$server->getSystemConfig();