Skip to content

Commit

Permalink
Replace ocsapp prefix in security:routes
Browse files Browse the repository at this point in the history
Replace "/ocsapp/" with "/ocs/v{version.php}/" in the security:routes
output.

Signed-off-by: Vincent Petry <[email protected]>
  • Loading branch information
PVince81 committed Oct 7, 2020
1 parent c1ac2ac commit ef9e35e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions core/Command/Security/ListRoutes.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit ef9e35e

Please sign in to comment.