Merge pull request #1686 from nextcloud/backport-1638-allow-cross-repository-execution

[stable10] Allow to call the files even when you are in another instance atm
This commit is contained in:
Roeland Jago Douma 2016-10-11 15:22:42 +02:00 committed by GitHub
commit 46a1705d39
10 changed files with 11 additions and 11 deletions

View File

@ -45,7 +45,7 @@ function exceptionHandler($exception) {
exit(1);
}
try {
require_once 'lib/base.php';
require_once __DIR__ . '/lib/base.php';
// set to run indefinitely if needed
set_time_limit(0);

View File

@ -32,7 +32,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);

View File

@ -43,7 +43,7 @@ if (version_compare(PHP_VERSION, '7.1.0') !== -1) {
try {
require_once 'lib/base.php';
require_once __DIR__ . '/lib/base.php';
OC::handleRequest();

View File

@ -19,7 +19,7 @@
*
*/
require_once('../lib/base.php');
require_once __DIR__ . '/../lib/base.php';
header('Content-Type: application/json');

View File

@ -23,7 +23,7 @@
*
*/
require_once '../lib/base.php';
require_once __DIR__ . '/../lib/base.php';
header('Content-type: application/xml');

View File

@ -29,7 +29,7 @@
*
*/
require_once '../lib/base.php';
require_once __DIR__ . '/../lib/base.php';
if (\OCP\Util::needUpgrade()
|| \OC::$server->getSystemConfig()->getValue('maintenance', false)

View File

@ -20,4 +20,4 @@
*
*/
require_once 'v1.php';
require_once __DIR__ . '/v1.php';

View File

@ -29,7 +29,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

View File

@ -107,7 +107,7 @@ function resolveService($service) {
}
try {
require_once 'lib/base.php';
require_once __DIR__ . '/lib/base.php';
// All resources served via the DAV endpoint should have the strictest possible
// policy. Exempted from this is the SabreDAV browser plugin which overwrites

View File

@ -29,7 +29,7 @@
try {
require_once 'lib/base.php';
require_once __DIR__ . '/lib/base.php';
$systemConfig = \OC::$server->getSystemConfig();