Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Also unset the other possible unused paramters #24737

Merged
merged 1 commit into from
Dec 18, 2020

Conversation

rullzer
Copy link
Member

@rullzer rullzer commented Dec 16, 2020

Fixes #23544

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
@rullzer
Copy link
Member Author

rullzer commented Dec 16, 2020

/backport to stable20

@@ -297,6 +297,7 @@ public function match($url) {
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']);

@@ -305,6 +306,7 @@ public function match($url) {
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
3 participants