Skip to content

Commit 6228cbe

Browse files
authored
Merge pull request #24737 from nextcloud/fix/23544/unset_parameter
Also unset the other possible unused paramters
2 parents de7c54c + 484f52b commit 6228cbe

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

lib/private/Route/Router.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,7 @@ public function match($url) {
297297
if (isset($parameters['caller'])) {
298298
$caller = $parameters['caller'];
299299
unset($parameters['caller']);
300+
unset($parameters['action']);
300301
$application = $this->getApplicationClass($caller[0]);
301302
\OC\AppFramework\App::main($caller[1], $caller[2], $application->getContainer(), $parameters);
302303
} elseif (isset($parameters['action'])) {
@@ -305,6 +306,7 @@ public function match($url) {
305306
throw new \Exception('not a callable action');
306307
}
307308
unset($parameters['action']);
309+
unset($parameters['caller']);
308310
call_user_func($action, $parameters);
309311
} elseif (isset($parameters['file'])) {
310312
include $parameters['file'];

0 commit comments

Comments
 (0)