Skip to content

Also unset the other possible unused paramters - #24737

Merged
rullzer merged 1 commit into
masterfrom
fix/23544/unset_parameter
Dec 18, 2020
Merged

Also unset the other possible unused paramters#24737
rullzer merged 1 commit into
masterfrom
fix/23544/unset_parameter

Conversation

@rullzer

Copy link
Copy Markdown
Member

Fixes#23544

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

Copy link
Copy Markdown
MemberAuthor

/backport to stable20

@@ -297,6 +297,7 @@ public function match($url) {
if (isset($parameters['caller'])) {
$caller = $parameters['caller'];
unset($parameters['caller']);

Copy link
Copy Markdown
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
Copy Markdown
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 masterDec 18, 2020
@rullzer
rullzer deleted the fix/23544/unset_parameter branch December 18, 2020 07:38
@rullzerrullzer mentioned this pull request Dec 18, 2020
59 tasks
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to reviewWaiting for reviewsbug

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

@rullzer@ChristophWurst@kesselb