diff options
author | Thomas Steur <tsteur@users.noreply.github.com> | 2020-02-20 02:20:38 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-20 02:20:38 +0300 |
commit | 2ca0084054e596e2bcce1edff76d62040bf0b23a (patch) | |
tree | 3c8fa9bc5d4547bc163c5d3a2aed72391d6bdf95 /matomo.js | |
parent | f3852c0f84e56783211fb4e62eed1da410828b15 (diff) |
Fallback to JSON renderer if no valid format is given (#15590)
* Fallback to JSON renderer if no valid format is given
Prevents exceptions like these which we are getting quite often due to security researchers trying different inputs
> Call to a member function getResponseException() on null","file":"\/core\/API\/Request.php","line":279,"request_id":"3e2b6","backtrace":" on \/var\/www\/html\/core\/API\/Request.php(279)\n#0 \/plugins\/API\/Controller.php(41)
Ideally will add a test but probably won't find the time soon.
* Add failing test.
* Fix test.
Co-authored-by: diosmosis <diosmosis@users.noreply.github.com>
Diffstat (limited to 'matomo.js')
0 files changed, 0 insertions, 0 deletions