remote.php 524 B

12345678910111213141516171819
  1. <?php
  2. /**
  3. * SPDX-FileCopyrightText: 2016-2024 Nextcloud GmbH and Nextcloud contributors
  4. * SPDX-FileCopyrightText: 2016 ownCloud, Inc.
  5. * SPDX-License-Identifier: AGPL-3.0-only
  6. */
  7. // no php execution timeout for webdav
  8. if (!str_contains(@ini_get('disable_functions'), 'set_time_limit')) {
  9. @set_time_limit(0);
  10. }
  11. ignore_user_abort(true);
  12. // Turn off output buffering to prevent memory problems
  13. \OC_Util::obEnd();
  14. $request = \OC::$server->getRequest();
  15. $server = new \OCA\DAV\Server($request, $baseuri);
  16. $server->exec();