Skip to content

Commit

Permalink
CommandActions: Force a form's HTTP method for api requests
Browse files Browse the repository at this point in the history
  • Loading branch information
nilmerg committed Sep 18, 2024
1 parent 67ee5c8 commit d572bc4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions library/Icingadb/Common/CommandActions.php
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,7 @@ protected function handleApiRequest(CommandForm $form)
});

$form->handleRequest($this->getServerRequest());
$this->assertHttpMethod($form->getMethod());

$errors = [];
foreach ($form->getElements() as $element) {
Expand Down

0 comments on commit d572bc4

Please sign in to comment.