mirror of
https://github.com/nextcloud/server.git
synced 2024-08-28 17:55:03 +02:00
Also unset the other possible unused paramters
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
parent
3a30ac495b
commit
484f52bb4d
@ -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'];
|
||||
|
Loading…
Reference in New Issue
Block a user