Skip to content

Conversation

@rullzer
Copy link
Member

@rullzer rullzer commented Dec 16, 2020

Fixes #23544

@rullzer
Copy link
Member Author

rullzer commented Dec 16, 2020

/backport to stable20

\OC::$server->getEventLogger()->start('run_route', 'Run route');
if (isset($parameters['caller'])) {
$caller = $parameters['caller'];
unset($parameters['caller']);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
unset($parameters['caller']);
unset($parameters['caller'], $parameters['action']);

if (!is_callable($action)) {
throw new \Exception('not a callable action');
}
unset($parameters['action']);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
unset($parameters['action']);
unset($parameters['action'], $parameters['caller']);

@rullzer rullzer merged commit 6228cbe into master Dec 18, 2020
@rullzer rullzer deleted the fix/23544/unset_parameter branch December 18, 2020 07:38
@rullzer rullzer mentioned this pull request Dec 18, 2020
59 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

NC20: Music app Ampache API broken because URL parameter 'action' can't be used

4 participants