2015-10-21 09:06:48 -04:00
|
|
|
<?php
|
2024-05-27 11:39:07 -04:00
|
|
|
|
2024-10-10 06:40:31 -04:00
|
|
|
use OCA\DAV\Server;
|
|
|
|
|
|
2016-01-12 09:02:16 -05:00
|
|
|
/**
|
2024-05-27 11:39:07 -04:00
|
|
|
* SPDX-FileCopyrightText: 2016-2024 Nextcloud GmbH and Nextcloud contributors
|
|
|
|
|
* SPDX-FileCopyrightText: 2016 ownCloud, Inc.
|
|
|
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
2016-01-12 09:02:16 -05:00
|
|
|
*/
|
2015-10-21 09:06:48 -04:00
|
|
|
// no php execution timeout for webdav
|
2023-06-02 08:08:19 -04:00
|
|
|
if (!str_contains(@ini_get('disable_functions'), 'set_time_limit')) {
|
2017-03-11 11:04:21 -05:00
|
|
|
@set_time_limit(0);
|
|
|
|
|
}
|
2017-01-13 06:55:08 -05:00
|
|
|
ignore_user_abort(true);
|
2015-10-21 09:06:48 -04:00
|
|
|
|
|
|
|
|
// Turn off output buffering to prevent memory problems
|
|
|
|
|
\OC_Util::obEnd();
|
|
|
|
|
|
|
|
|
|
$request = \OC::$server->getRequest();
|
2024-10-10 06:40:31 -04:00
|
|
|
$server = new Server($request, $baseuri);
|
2015-10-21 09:06:48 -04:00
|
|
|
$server->exec();
|