Skip to content

Commit

Permalink
Only try to getParams() for get requests - otherwise it tries to pars…
Browse files Browse the repository at this point in the history
…e the request body
  • Loading branch information
DeepDiver1975 committed Nov 27, 2017
1 parent c0826a0 commit b09e2b0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/AppInfo/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,9 @@ public function __construct(array $urlParams = array()) {
public function boot() {
$this->getContainer()->query('UserHooks')->register();
$request = $this->getContainer()->getServer()->getRequest();
if ($request->getMethod() !== 'GET') {
return;
}
$redirectUrl = $request->getParam('redirect_url');
if ($redirectUrl === null) {
return;
Expand Down

0 comments on commit b09e2b0

Please sign in to comment.