From 5de0c3c5f7fd15f2a1eab099c7e74e3ae34f0eea Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Wed, 16 Dec 2020 20:31:30 +0100 Subject: [PATCH] Also unset the other possible unused paramters Signed-off-by: Roeland Jago Douma --- lib/private/Route/Router.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/private/Route/Router.php b/lib/private/Route/Router.php index 94c637e5e0d..413b42d95c9 100644 --- a/lib/private/Route/Router.php +++ b/lib/private/Route/Router.php @@ -304,6 +304,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'])) { @@ -312,6 +313,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']; -- 2.39.5