aboutsummaryrefslogtreecommitdiffstats
path: root/apps/dav/appinfo/v2/remote.php
blob: 28cfe338a9361bb21e7b5ce2d9904e9726c4ee64 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<?php

use OCA\DAV\Server;

/**
 * SPDX-FileCopyrightText: 2016-2024 Nextcloud GmbH and Nextcloud contributors
 * SPDX-FileCopyrightText: 2016 ownCloud, Inc.
 * SPDX-License-Identifier: AGPL-3.0-only
 */
// no php execution timeout for webdav
if (!str_contains(@ini_get('disable_functions'), 'set_time_limit')) {
	@set_time_limit(0);
}
ignore_user_abort(true);

// Turn off output buffering to prevent memory problems
\OC_Util::obEnd();

$request = \OC::$server->getRequest();
$server = new Server($request, $baseuri);
$server->exec();