aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Route
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2020-12-16 20:31:30 +0100
committerRoeland Jago Douma <roeland@famdouma.nl>2020-12-16 20:31:30 +0100
commit484f52bb4dc533085ebed997f6a12341342ba7fc (patch)
treef8bcccfb21c81f82a14090d78c337696fd3c43f3 /lib/private/Route
parent3a30ac495bd9663ef8233aacc8ce5b21a8adce67 (diff)
downloadnextcloud-server-484f52bb4dc533085ebed997f6a12341342ba7fc.tar.gz
nextcloud-server-484f52bb4dc533085ebed997f6a12341342ba7fc.zip
Also unset the other possible unused paramters
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'lib/private/Route')
-rw-r--r--lib/private/Route/Router.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/private/Route/Router.php b/lib/private/Route/Router.php
index 1c77a4eb494..71bc4a6c4f7 100644
--- a/lib/private/Route/Router.php
+++ b/lib/private/Route/Router.php
@@ -297,6 +297,7 @@ class Router implements IRouter {
if (isset($parameters['caller'])) {
$caller = $parameters['caller'];
unset($parameters['caller']);
+ unset($parameters['action']);
$application = $this->getApplicationClass($caller[0]);
\OC\AppFramework\App::main($caller[1], $caller[2], $application->getContainer(), $parameters);
} elseif (isset($parameters['action'])) {
@@ -305,6 +306,7 @@ class Router implements IRouter {
throw new \Exception('not a callable action');
}
unset($parameters['action']);
+ unset($parameters['caller']);
call_user_func($action, $parameters);
} elseif (isset($parameters['file'])) {
include $parameters['file'];