FreePBX / framework

This module provides a facility to install bug fixes to the framework code that is not otherwise housed in a module
http://www.freepbx.org
GNU General Public License v3.0
64 stars 64 forks source link

17 isn't catching the json_decode() exception that is thrown #135

Closed Stevehans closed 5 months ago

Stevehans commented 5 months ago

FreePBX Version

FreePBX 17

Issue Description

If the webserver returns invalid JSON (or say a 404), then the exception thrown by JSON_THROW_ON_ERROR isn't caught.

This is in page.modules.php around line 116

Needs a try ... catch

Operating Environment

Latest 17 version, Asterisk 21

Relevant log output

No response

kguptasangoma commented 5 months ago

Thanks @Stevehans updated the 17 framework module.