diff --git a/core/Command/Security/ListRoutes.php b/core/Command/Security/ListRoutes.php index 8353720482694..e0427e3eb3a58 100644 --- a/core/Command/Security/ListRoutes.php +++ b/core/Command/Security/ListRoutes.php @@ -90,6 +90,9 @@ protected function execute(InputInterface $input, OutputInterface $output): int if (isset($rows[$path])) { $rows[$path]['methods'] = \array_unique(\array_merge($rows[$path]['methods'], $route->getMethods())); } else { + if (substr($path, 0, 8) === '/ocsapp/') { + $path = '/ocs/v{version}.php/' . substr($path, 8); + } $rows[$path] = [ 'path' => $path, 'methods' => $route->getMethods()