Browse Source

Merge pull request #52840 from nextcloud/fix/remove-broken-versions-routes

fix(files_versions): Remove routes leading to deleted ajax files
pull/52847/head
Côme Chilliet 7 months ago
committed by GitHub
parent
commit
300964ec4b
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 10
      apps/files_versions/appinfo/routes.php
  2. 5
      build/psalm-baseline.xml

10
apps/files_versions/appinfo/routes.php

@ -6,16 +6,6 @@
*/
namespace OCA\Files_Versions\AppInfo;
use OCP\Route\IRouter;
/** @var IRouter $this */
$this->create('files_versions_download', 'apps/files_versions/download.php')
->actionInclude('files_versions/download.php');
$this->create('files_versions_ajax_getVersions', 'apps/files_versions/ajax/getVersions.php')
->actionInclude('files_versions/ajax/getVersions.php');
$this->create('files_versions_ajax_rollbackVersion', 'apps/files_versions/ajax/rollbackVersion.php')
->actionInclude('files_versions/ajax/rollbackVersion.php');
return [
'routes' => [
[

5
build/psalm-baseline.xml

@ -966,11 +966,6 @@
<code><![CDATA[$timestamp]]></code>
</InvalidArgument>
</file>
<file src="apps/files_versions/appinfo/routes.php">
<InvalidScope>
<code><![CDATA[$this->create('files_versions_download', 'apps/files_versions/download.php')]]></code>
</InvalidScope>
</file>
<file src="apps/files_versions/lib/Sabre/RestoreFolder.php">
<InvalidNullableReturnType>
<code><![CDATA[getChild]]></code>

Loading…
Cancel
Save